From 401e46e599c8a1b843e956af422ead36aec92dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Wed, 9 Nov 2016 13:02:21 +0100 Subject: [PATCH] Use event.keyCode for consistency We should either switch everything to event.code or nothing, imho --- js/inputbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/inputbar.js b/js/inputbar.js index 81630ed..4777988 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -358,7 +358,7 @@ weechat.directive('inputBar', function() { } // Alt-h -> Toggle all as read - if ($event.altKey && !$event.ctrlKey && key === "KeyH" ) { + if ($event.altKey && !$event.ctrlKey && code === 72) { var buffers = models.getBuffers(); _.each(buffers, function(buffer) { buffer.unread = 0;