mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 00: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)
|
if (waiting)
|
||||||
this._processors = processors;
|
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();
|
dactyl.beep();
|
||||||
|
|
||||||
if (refeed && refeed[0] && !refeed[0].getPreventDefault()) {
|
if (refeed && refeed[0] && !refeed[0].getPreventDefault()) {
|
||||||
@@ -1020,7 +1020,7 @@ var Events = Module("events", {
|
|||||||
if (event.originalTarget) {
|
if (event.originalTarget) {
|
||||||
util.dump("Re-feed " + i + " " + refeed.length + " " + (events.toString(event) || "").quote());
|
util.dump("Re-feed " + i + " " + refeed.length + " " + (events.toString(event) || "").quote());
|
||||||
let evt = events.create(event.originalTarget.ownerDocument, event.type, event);
|
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)
|
else if (i > 0)
|
||||||
events.onKeyPress(event);
|
events.onKeyPress(event);
|
||||||
|
|||||||
@@ -36,12 +36,14 @@ var Modes = Module("modes", {
|
|||||||
this.boundProperties = {};
|
this.boundProperties = {};
|
||||||
|
|
||||||
this.addMode("BASE", {
|
this.addMode("BASE", {
|
||||||
description: "The base mode for all other modes"
|
description: "The base mode for all other modes",
|
||||||
|
count: false
|
||||||
});
|
});
|
||||||
this.addMode("MAIN", {
|
this.addMode("MAIN", {
|
||||||
char: "m",
|
char: "m",
|
||||||
description: "The base mode for most other modes",
|
description: "The base mode for most other modes",
|
||||||
bases: [this.BASE]
|
bases: [this.BASE],
|
||||||
|
count: false
|
||||||
});
|
});
|
||||||
this.addMode("COMMAND", {
|
this.addMode("COMMAND", {
|
||||||
description: "The base mode for most modes which accept commands rather than input",
|
description: "The base mode for most modes which accept commands rather than input",
|
||||||
@@ -100,7 +102,9 @@ var Modes = Module("modes", {
|
|||||||
|
|
||||||
this.addMode("INPUT", {
|
this.addMode("INPUT", {
|
||||||
char: "I",
|
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", {
|
this.addMode("INSERT", {
|
||||||
char: "i",
|
char: "i",
|
||||||
|
|||||||
Reference in New Issue
Block a user