summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-23 23:35:17 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-23 23:35:17 +0100
commitb08112f936253ee43150fd303a3655319fe8652b (patch)
treea976c2d6e61954158052d5d8e1eb39ec9b3ee7d7
parentcomment-convo with kegan (diff)
downloadsynapse-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(!)
-rw-r--r--webclient/room/room-directive.js2
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;