fix ie11 hotkey crash

This commit is contained in:
ed 2022-02-06 02:08:18 +01:00
parent ce776a547c
commit 457d7df129

View file

@ -3025,7 +3025,7 @@ document.onkeydown = function (e) {
}
}
if (ae.closest('pre')) {
if (ae && ae.closest('pre')) {
if (k == 'KeyA' && ctrl(e)) {
var sel = document.getSelection(),
ran = document.createRange();