mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
<ESC> in cmdline to null input and exit
This commit is contained in:
parent
ac28b348d5
commit
82736c99ef
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ clInput.addEventListener("keydown", function (keyevent) {
|
|||
if (keyevent.key === "Enter") {
|
||||
process()
|
||||
}
|
||||
if (keyevent.key === "Escape") {
|
||||
browser.runtime.sendMessage({type: "commandline", exStr: "hidecommandline"})
|
||||
clInput.value = ""
|
||||
}
|
||||
})
|
||||
|
||||
/* Send the commandline to the background script and await response. */
|
||||
|
|
Loading…
Add table
Reference in a new issue