mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
fix small misstake, 'escape' v. 'Escape'
This commit is contained in:
parent
3e891c9c0b
commit
725c873e81
@ -1216,14 +1216,14 @@
|
||||
}
|
||||
var code = ev.charCode || ev.keyCode;
|
||||
if(code == 27) {
|
||||
return "escape"
|
||||
return "Escape"
|
||||
}
|
||||
return String.fromCharCode(code)
|
||||
}
|
||||
|
||||
function onWindowKeyDown(ev) {
|
||||
switch (getKeyValue(ev)) {
|
||||
case "escape":
|
||||
case "Escape":
|
||||
if (ev.shiftKey || ev.ctrlKey || ev.altKey) return;
|
||||
if (!domHelpModal.classList.contains("hidden")) {
|
||||
domHelpModal.classList.add("hidden");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user