diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-08-06 08:07:31 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-08-06 08:07:31 -0400 |
commit | 4958d6854f805ddd4743bee08813b2f117fcd528 (patch) | |
tree | 397f4677430a9ab9a2fcc54fc50fdaa49821fb0c /common | |
parent | 99f3840b724038b969f99f804c1e9d3caf1d69cd (diff) | |
download | pentadactyl-4958d6854f805ddd4743bee08813b2f117fcd528.tar.gz |
Fix pass through of <Space> to alert boxen.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/buffer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js index c5ffc058..6d3c93fa 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1753,7 +1753,8 @@ var Buffer = Module("buffer", { mappings.add([modes.NORMAL], ["<Space>"], "Scroll down a full page", function (args) { - if (isinstance(content.document.activeElement, [HTMLInputElement, HTMLButtonElement])) + if (isinstance(services.focus.activeWindow.document.activeElement, + [HTMLInputElement, HTMLButtonElement, Ci.nsIDOMXULButtonElement])) return Events.PASS; buffer.scrollVertical("pages", Math.max(args.count, 1)); }, |