Commit aa4bca6f authored by onny's avatar onny

close loginoverlay on esc key press

parent 7ecae34b
......@@ -34,7 +34,9 @@ document.onkeydown = function(evt) {
var inputField = document.getElementsByClassName("inputField")[0];
var searchFocused = (document.activeElement === inputField);
var loginFocused = false; // FIXME
var loginFocused = document.getElementsByClassName("loginOverlay")[0].classList.contains("showFlex");
console.log(loginFocused);
if (evt.keyCode == 27 && searchFocused) {
toggle_search(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment