hotkey_handler: stop propagation of handled prefix/action events
This commit is contained in:
parent
40f4a7aa6b
commit
0a79531696
|
@ -893,7 +893,8 @@ function hotkey_handler(e) {
|
||||||
cmdline.innerHTML = keychar;
|
cmdline.innerHTML = keychar;
|
||||||
Element.show(cmdline);
|
Element.show(cmdline);
|
||||||
|
|
||||||
return true;
|
e.stopPropagation();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Element.hide(cmdline);
|
Element.hide(cmdline);
|
||||||
|
@ -923,6 +924,7 @@ function hotkey_handler(e) {
|
||||||
|
|
||||||
if (action != null) {
|
if (action != null) {
|
||||||
action();
|
action();
|
||||||
|
e.stopPropagation();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue