From b08112f936253ee43150fd303a3655319fe8652b Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 23 Sep 2014 23:35:17 +0100 Subject: [PATCH] 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(!) --- webclient/room/room-directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;