mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-18 19:24:14 +01:00
Fix onKeyPress error
This commit is contained in:
@@ -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