1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:27:58 +01:00

Don't derive Text Edit mode from Operator mode. Allow escaping from Operator mode.

This commit is contained in:
Kris Maglione
2011-08-06 14:25:43 -04:00
parent 48d1109f6a
commit ff0c5af5db
3 changed files with 10 additions and 15 deletions

View File

@@ -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;