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) ->
|
||||||
|
|
Reference in a new issue