Fix alt-n again
This commit is contained in:
parent
4fccf9dc8d
commit
5dd11d72c0
|
@ -115,7 +115,7 @@
|
||||||
<li>ALT-a: Focus on next buffer with activity</li>
|
<li>ALT-a: Focus on next buffer with activity</li>
|
||||||
<li>ALT-<: Switch to previous buffer</li>
|
<li>ALT-<: Switch to previous buffer</li>
|
||||||
<li>ALT-g: Focus on buffer list filter</li>
|
<li>ALT-g: Focus on buffer list filter</li>
|
||||||
<li>escape: disconnect</li>
|
<li>Esc: disconnect</li>
|
||||||
<li>arrow keys: history navigation</li>
|
<li>arrow keys: history navigation</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -915,6 +915,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// Helper function since the keypress handler is in a different scope
|
||||||
|
$rootScope.toggleNicklist = function() {
|
||||||
|
$scope.nonicklist = !$scope.nonicklist;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$scope.handleSearchBoxKey = function($event) {
|
$scope.handleSearchBoxKey = function($event) {
|
||||||
|
@ -1103,7 +1107,7 @@ weechat.directive('inputBar', function() {
|
||||||
// Left Alt+n -> toggle nicklist
|
// Left Alt+n -> toggle nicklist
|
||||||
if ($event.altKey && !$event.ctrlKey && code === 78) {
|
if ($event.altKey && !$event.ctrlKey && code === 78) {
|
||||||
$event.preventDefault();
|
$event.preventDefault();
|
||||||
$scope.nonicklist = !$scope.nonicklist;
|
$rootScope.toggleNicklist();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue