mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 14:47:59 +01:00
Move events.(toString|fromString|iterKeys|canonicalKeys) to DOM.Event.
This commit is contained in:
@@ -109,7 +109,7 @@ var Modes = Module("modes", {
|
||||
const KILL = false, PASS = true;
|
||||
|
||||
// Hack, really.
|
||||
if (eventList[0].charCode || /^<(?:.-)*(?:BS|Del|C-h|C-w|C-u|C-k)>$/.test(events.toString(eventList[0]))) {
|
||||
if (eventList[0].charCode || /^<(?:.-)*(?:BS|Del|C-h|C-w|C-u|C-k)>$/.test(DOM.Event.stringify(eventList[0]))) {
|
||||
dactyl.beep();
|
||||
return KILL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user