forked from MirrorHub/synapse
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(!)
This commit is contained in:
parent
53ae5bce13
commit
b08112f936
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue