Ignore keybindings when input
or textarea
is focused
Committed a0abad
--- a/canopy/static/enliven.js
+++ b/canopy/static/enliven.js
}
return
}
+ if (ev.target.tagName == 'INPUT' || ev.target.tagName == 'TEXTAREA')
+ return
if (konamiCharacters.indexOf(ev.keyCode) != -1) {
konamiQueue = konamiQueue.slice(1).concat([ev.keyCode]) // FIFO
if (JSON.stringify(konamiQueue) == JSON.stringify(konamiSolution)) {