From 2ecf6dfec606e581f639ba2925ebe99be129852d Mon Sep 17 00:00:00 2001
From: Rob <rob@codecombat.com>
Date: Wed, 2 Dec 2015 12:03:27 -0800
Subject: [PATCH] Log when we prevent keystrokes so that we can solve a crazy
 bug.

---
 app/core/application.coffee | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/core/application.coffee b/app/core/application.coffee
index a2a665c58..889df5770 100644
--- a/app/core/application.coffee
+++ b/app/core/application.coffee
@@ -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) ->