Fixed typo in template
diff --git a/public/js/hint.js b/public/js/hint.js
index 786c185..0ec79b8 100644
--- a/public/js/hint.js
+++ b/public/js/hint.js
@@ -176,6 +176,8 @@
function changed (e) {
var el = e.target;
+console.log("Change " + e.key);
+
if (e.key === '/' || e.key === '=') {
var start = el.selectionStart;
mirror.firstChild.textContent = el.value.substring(0, start);
@@ -216,8 +218,14 @@
e.stopPropagation();
e.preventDefault();
return false;
+ }
+ else if (e.key !== 'Shift' &&
+ e.key !== 'Alt' &&
+ e.key !== 'AltGraph' &&
+ e.key !== 'CapsLock') {
+ that.hide();
};
- that.hide();
+ return true;
};
function qlSelect () {
@@ -235,5 +243,5 @@
window.onresize = init;
search.addEventListener("keyup", changed, false);
search.addEventListener("keydown", select, false);
- qlField.addEventListener('change', qlSelect, false);
+ qlField.addEventListener("change", qlSelect, false);
};