mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Keeping space from scrolling. This is a total and complete hack that wants a better fix later.
This commit is contained in:
parent
b450915b91
commit
e0003e62a8
@ -18,9 +18,17 @@
|
||||
controller.doCommand('cmd_scrollPageDown');"/>
|
||||
<key id="space" key=" " shift="false" control="false"
|
||||
onkeypress="
|
||||
var v = document.commandDispatcher.focusedElement;
|
||||
|
||||
if (v && (v.tagName == 'INPUT' || v.tagName == 'TEXTAREA')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var controller =
|
||||
document.commandDispatcher.getControllerForCommand('cmd_scrollPageDown');
|
||||
controller.doCommand('cmd_scrollPageDown');"/>
|
||||
controller.doCommand('cmd_scrollPageDown');
|
||||
"/>
|
||||
|
||||
<key id="key_page_up" keycode="VK_UP" shift="false" control="false"
|
||||
onkeypress="
|
||||
var controller =
|
||||
|
Loading…
Reference in New Issue
Block a user