mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 14:42:29 +02:00
Fix onKeyPress error
This commit is contained in:
1 parent
ef827139e4
commit
0583508b94
1 file changed
+1
-1
@@ -1300,7 +1300,7 @@ function Events() //{{{
|
|||||||
let stop = true; // set to false if we should NOT consume this event but let Firefox handle it
|
let stop = true; // set to false if we should NOT consume this event but let Firefox handle it
|
||||||
|
|
||||||
let win = document.commandDispatcher.focusedWindow;
|
let win = document.commandDispatcher.focusedWindow;
|
||||||
if (win && win.document.designMode == "on" && !config.isComposeWindow)
|
if (win && win.document && win.document.designMode == "on" && !config.isComposeWindow)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// menus have their own command handlers
|
// menus have their own command handlers
|
||||||
|
|||||||
Reference in new issue
Block a user