diff --git a/index.html b/index.html index ebfc3c8..d4df8b6 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ - +

logo diff --git a/js/glowingbear.js b/js/glowingbear.js index d7e6500..98a96ae 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -1604,7 +1604,7 @@ weechat.directive('inputBar', function() { } // Arrow up -> go up in history - if (code === 38) { + if ($event.type === "keydown" && code === 38) { $scope.command = models.getActiveBuffer().getHistoryUp($scope.command); // Set cursor to last position. Need 0ms timeout because browser sets cursor // position to the beginning after this key handler returns. @@ -1617,7 +1617,7 @@ weechat.directive('inputBar', function() { } // Arrow down -> go down in history - if (code === 40) { + if ($event.type === "keydown" && code === 40) { $scope.command = models.getActiveBuffer().getHistoryDown($scope.command); // We don't need to set the cursor to the rightmost position here, the browser does that for us return true;