mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-25 21:43:47 -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)
|
||||
event.preventDefault()
|
||||
else if (key.ctrl or key.command) and not key.alt and event.keyCode in ctrlDefaultPrevented
|
||||
console.debug "Prevented keystroke", key
|
||||
event.preventDefault()
|
||||
|
||||
elementAcceptsKeystrokes = (el) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue