mirror of
https://github.com/ziglang/zig.git
synced 2025-12-18 04:03:14 +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;
|
var code = ev.charCode || ev.keyCode;
|
||||||
if(code == 27) {
|
if(code == 27) {
|
||||||
return "escape"
|
return "Escape"
|
||||||
}
|
}
|
||||||
return String.fromCharCode(code)
|
return String.fromCharCode(code)
|
||||||
}
|
}
|
||||||
|
|
||||||
function onWindowKeyDown(ev) {
|
function onWindowKeyDown(ev) {
|
||||||
switch (getKeyValue(ev)) {
|
switch (getKeyValue(ev)) {
|
||||||
case "escape":
|
case "Escape":
|
||||||
if (ev.shiftKey || ev.ctrlKey || ev.altKey) return;
|
if (ev.shiftKey || ev.ctrlKey || ev.altKey) return;
|
||||||
if (!domHelpModal.classList.contains("hidden")) {
|
if (!domHelpModal.classList.contains("hidden")) {
|
||||||
domHelpModal.classList.add("hidden");
|
domHelpModal.classList.add("hidden");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user