mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 03:02:26 +01:00
Take counts into account in keydown blocking magic. Closes issue #753.
--HG-- extra : rebase_source : 605bf6b32dfa364efa3b0e80d55dbedd6c89b5e1
This commit is contained in:
@@ -801,9 +801,10 @@ var Events = Module("events", {
|
||||
!this.processor && event.type === "keydown"
|
||||
&& options.get("passunknown").getKey(modes.main.allBases)
|
||||
&& let (key = DOM.Event.stringify(event))
|
||||
!modes.main.allBases.some(
|
||||
!(modes.main.count && /^\d$/.test(key) ||
|
||||
modes.main.allBases.some(
|
||||
function (mode) mappings.hives.some(
|
||||
function (hive) hive.get(mode, key) || hive.getCandidates(mode, key)));
|
||||
function (hive) hive.get(mode, key) || hive.getCandidates(mode, key))));
|
||||
|
||||
events.dbg("ON " + event.type.toUpperCase() + " " + DOM.Event.stringify(event) +
|
||||
" passing: " + this.passing + " " +
|
||||
|
||||
Reference in New Issue
Block a user