diff options
Diffstat (limited to 'common/content/buffer.js')
-rw-r--r-- | common/content/buffer.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js index eb84f668..8912ad0a 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1753,11 +1753,7 @@ var Buffer = Module("buffer", { mappings.add([modes.NORMAL], ["<Space>"], "Scroll down a full page", function (args) { - if (isinstance(services.focus.activeWindow.document.activeElement, - [HTMLInputElement, HTMLButtonElement, Ci.nsIDOMXULButtonElement])) - return Events.PASS; - - if (isinstance(buffer.focusedFrame.document.activeElement, + if (isinstance((services.focus.focusedWindow || content).document.activeElement, [HTMLInputElement, HTMLButtonElement, Ci.nsIDOMXULButtonElement])) return Events.PASS; |