summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-08-06 08:07:31 -0400
committerKris Maglione <maglione.k@gmail.com>2011-08-06 08:07:31 -0400
commit4958d6854f805ddd4743bee08813b2f117fcd528 (patch)
tree397f4677430a9ab9a2fcc54fc50fdaa49821fb0c /common
parent99f3840b724038b969f99f804c1e9d3caf1d69cd (diff)
downloadpentadactyl-4958d6854f805ddd4743bee08813b2f117fcd528.tar.gz
Fix pass through of <Space> to alert boxen.
Diffstat (limited to 'common')
-rw-r--r--common/content/buffer.js3
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));
},