From 70abe58afe3640281e695afbe198ed22cb440edf Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Tue, 29 Oct 2013 12:50:02 +0100 Subject: [PATCH] New keyboard shortcut alt-n: toggle nicklist --- js/websockets.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/websockets.js b/js/websockets.js index c1d5995..ff222c2 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -771,6 +771,13 @@ weechat.directive('inputBar', function() { return true; } + // Left Alt+n -> toggle nicklist + if ($event.altKey && !$event.ctrlKey && code == 78) { + $event.preventDefault(); + $scope.nonicklist = !$scope.nonicklist; + return true; + } + // Alt+A -> switch to buffer with activity if ($event.altKey && (code == 97 || code == 65)) { $event.preventDefault();