1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 02:14:11 +01:00

Fix onKeyPress error

This commit is contained in:
Kris Maglione
2008-12-20 15:38:12 -05:00
parent ef827139e4
commit 0583508b94

View File

@@ -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 win = document.commandDispatcher.focusedWindow;
if (win && win.document.designMode == "on" && !config.isComposeWindow)
if (win && win.document && win.document.designMode == "on" && !config.isComposeWindow)
return false;
// menus have their own command handlers