diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-09-23 23:35:17 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-09-23 23:35:17 +0100 |
commit | b08112f936253ee43150fd303a3655319fe8652b (patch) | |
tree | a976c2d6e61954158052d5d8e1eb39ec9b3ee7d7 /webclient/room/room-directive.js | |
parent | comment-convo with kegan (diff) | |
download | synapse-b08112f936253ee43150fd303a3655319fe8652b.tar.xz |
on safari at least keypress's event.which returns ASCII rather than keycodes, so 38 & 40 was swallowing ( and & rather than up-arrow and down-arrow(!)
Diffstat (limited to '')
-rw-r--r-- | webclient/room/room-directive.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room-directive.js b/webclient/room/room-directive.js index 1d02a94c39..05382cfcd3 100644 --- a/webclient/room/room-directive.js +++ b/webclient/room/room-directive.js @@ -146,7 +146,7 @@ angular.module('RoomController') }]) .directive('commandHistory', [ function() { return function (scope, element, attrs) { - element.bind("keydown keypress", function (event) { + element.bind("keydown", function (event) { var keycodePressed = event.which; var UP_ARROW = 38; var DOWN_ARROW = 40; |