Explorar el Código

hide help if escape is pressed

Lucas Stadler %!s(int64=10) %!d(string=hace) años
padre
commit
3228955b33
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      glsl/docs.js

+ 4 - 0
glsl/docs.js

@ -131,5 +131,9 @@ document.body.appendChild(docsContainerEl);
131 131
window.addEventListener("keydown", function(ev) {
132 132
  if (ev.ctrlKey && ev.keyCode == 72) { // Ctrl-h
133 133
    handleToggle(ev);
134
  } else if (ev.keyCode == 27) { // Escape
135
    if (location.hash == "#docs") {
136
      handleToggle(ev);
137
    }
134 138
  }
135 139
});