aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/keyboard_utils.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/keyboard_utils.coffee b/lib/keyboard_utils.coffee
index 5ba47bff..ead8c037 100644
--- a/lib/keyboard_utils.coffee
+++ b/lib/keyboard_utils.coffee
@@ -115,6 +115,10 @@ KeyboardUtils =
if 31 < event.keyCode
String.fromCharCode event.charCode
+ # TODO(smblott). Currently all (almost?) keyhandling is being done on keydown. All legacy code related
+ # to key handling on keypress should be reviewed and probably removed. This is not being done right now
+ # (2017-03-22) because it is better to wait until we've verified that the change to keydown is indeed
+ # correct and reliable.
when "keydown"
if keyChar = @getKeyChar event
modifiers = []