mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-01 16:33:38 -04:00
Log when we prevent keystrokes so that we can solve a crazy bug.
This commit is contained in:
parent
b783f6f5fe
commit
2ecf6dfec6
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ preventBackspace = (event) ->
|
||||||
if event.keyCode is 8 and not elementAcceptsKeystrokes(event.srcElement or event.target)
|
if event.keyCode is 8 and not elementAcceptsKeystrokes(event.srcElement or event.target)
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
else if (key.ctrl or key.command) and not key.alt and event.keyCode in ctrlDefaultPrevented
|
else if (key.ctrl or key.command) and not key.alt and event.keyCode in ctrlDefaultPrevented
|
||||||
|
console.debug "Prevented keystroke", key
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
||||||
elementAcceptsKeystrokes = (el) ->
|
elementAcceptsKeystrokes = (el) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue