Log when we prevent keystrokes so that we can solve a crazy bug.

This commit is contained in:
Rob 2015-12-02 12:03:27 -08:00
parent b783f6f5fe
commit 2ecf6dfec6

View file

@ -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) ->