mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 12:44:13 +01:00
Fix pass through of <Space> to alert boxen.
This commit is contained in:
@@ -1753,7 +1753,8 @@ var Buffer = Module("buffer", {
|
|||||||
mappings.add([modes.NORMAL], ["<Space>"],
|
mappings.add([modes.NORMAL], ["<Space>"],
|
||||||
"Scroll down a full page",
|
"Scroll down a full page",
|
||||||
function (args) {
|
function (args) {
|
||||||
if (isinstance(content.document.activeElement, [HTMLInputElement, HTMLButtonElement]))
|
if (isinstance(services.focus.activeWindow.document.activeElement,
|
||||||
|
[HTMLInputElement, HTMLButtonElement, Ci.nsIDOMXULButtonElement]))
|
||||||
return Events.PASS;
|
return Events.PASS;
|
||||||
buffer.scrollVertical("pages", Math.max(args.count, 1));
|
buffer.scrollVertical("pages", Math.max(args.count, 1));
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ var Config = Module("config", ConfigBase, {
|
|||||||
mappings: function initMappings(dactyl, modules, window) {
|
mappings: function initMappings(dactyl, modules, window) {
|
||||||
const { Events, mappings, modes } = modules;
|
const { Events, mappings, modes } = modules;
|
||||||
mappings.add([modes.NORMAL],
|
mappings.add([modes.NORMAL],
|
||||||
["<Return>", "<Space>", "<Up>", "<Down>"],
|
["<Return>", "<Up>", "<Down>"],
|
||||||
"Handled by " + config.host,
|
"Handled by " + config.host,
|
||||||
function () Events.PASS_THROUGH);
|
function () Events.PASS_THROUGH);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user