Use event.keyCode for consistency

We should either switch everything to event.code or nothing, imho
This commit is contained in:
Lorenz Hübschle-Schneider 2016-11-09 13:02:21 +01:00
parent 71c2900216
commit 401e46e599

View file

@ -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;