<ESC> in cmdline to null input and exit

This commit is contained in:
Koushien 2017-10-09 12:40:23 -07:00
parent ac28b348d5
commit 82736c99ef
No known key found for this signature in database
GPG key ID: 082A69D4DD10690E

View file

@ -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. */