sane-input-handler: fix power_then_voldown keybinding
This commit is contained in:
@@ -73,7 +73,7 @@ var Triggers = {
|
|||||||
PowerAndVolup : "power_and_volup",
|
PowerAndVolup : "power_and_volup",
|
||||||
PowerAndVoldown : "power_and_voldown",
|
PowerAndVoldown : "power_and_voldown",
|
||||||
PowerThenVolup : "power_then_volup",
|
PowerThenVolup : "power_then_volup",
|
||||||
PowerThenVoldown : "power_and_voldown",
|
PowerThenVoldown : "power_then_voldown",
|
||||||
VolupTap1 : "volup_tap_1",
|
VolupTap1 : "volup_tap_1",
|
||||||
VolupTap2 : "volup_tap_2",
|
VolupTap2 : "volup_tap_2",
|
||||||
VolupTap3 : "volup_tap_3",
|
VolupTap3 : "volup_tap_3",
|
||||||
@@ -457,6 +457,7 @@ func Dispatcher_add_handler(self, trigger, response; screen=false, fullscreen=fa
|
|||||||
func Dispatcher_new() {
|
func Dispatcher_new() {
|
||||||
var handlers = {}
|
var handlers = {}
|
||||||
for _k, v in (Triggers) {
|
for _k, v in (Triggers) {
|
||||||
|
assert (v not in handlers)
|
||||||
setvar handlers[v] = []
|
setvar handlers[v] = []
|
||||||
}
|
}
|
||||||
return (Object(Dispatcher, { handlers: handlers }))
|
return (Object(Dispatcher, { handlers: handlers }))
|
||||||
|
Reference in New Issue
Block a user