mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 19:17:58 +01:00
Fix typing numbers in input modes.
This commit is contained in:
@@ -1004,7 +1004,7 @@ var Events = Module("events", {
|
||||
|
||||
if (waiting)
|
||||
this._processors = processors;
|
||||
else if (res !== Events.KILL && (mode.main & (modes.TEXT_EDIT | modes.VISUAL)))
|
||||
else if (res === Events.KILL && (mode.main & (modes.TEXT_EDIT | modes.VISUAL)))
|
||||
dactyl.beep();
|
||||
|
||||
if (refeed && refeed[0] && !refeed[0].getPreventDefault()) {
|
||||
@@ -1020,7 +1020,7 @@ var Events = Module("events", {
|
||||
if (event.originalTarget) {
|
||||
util.dump("Re-feed " + i + " " + refeed.length + " " + (events.toString(event) || "").quote());
|
||||
let evt = events.create(event.originalTarget.ownerDocument, event.type, event);
|
||||
events.dispatch(event.originalTarget, evt, i == 0 && { skipmap: true });
|
||||
events.dispatch(event.originalTarget, evt, { skipmap: true });
|
||||
}
|
||||
else if (i > 0)
|
||||
events.onKeyPress(event);
|
||||
|
||||
@@ -36,12 +36,14 @@ var Modes = Module("modes", {
|
||||
this.boundProperties = {};
|
||||
|
||||
this.addMode("BASE", {
|
||||
description: "The base mode for all other modes"
|
||||
description: "The base mode for all other modes",
|
||||
count: false
|
||||
});
|
||||
this.addMode("MAIN", {
|
||||
char: "m",
|
||||
description: "The base mode for most other modes",
|
||||
bases: [this.BASE]
|
||||
bases: [this.BASE],
|
||||
count: false
|
||||
});
|
||||
this.addMode("COMMAND", {
|
||||
description: "The base mode for most modes which accept commands rather than input",
|
||||
@@ -100,7 +102,9 @@ var Modes = Module("modes", {
|
||||
|
||||
this.addMode("INPUT", {
|
||||
char: "I",
|
||||
description: "The base mode for input modes, including Insert and Command Line"
|
||||
description: "The base mode for input modes, including Insert and Command Line",
|
||||
bases: [this.BASE],
|
||||
input: true
|
||||
});
|
||||
this.addMode("INSERT", {
|
||||
char: "i",
|
||||
|
||||
Reference in New Issue
Block a user