Reset search state when initiating jump

This commit is contained in:
Lorenz Hübschle-Schneider 2017-03-18 17:04:37 +01:00
parent 22cb962e63
commit 915d0d5d3e

View file

@ -409,6 +409,8 @@ weechat.directive('inputBar', function() {
// Alt+J -> Jump to buffer
if ($event.altKey && (code === 106 || code === 74)) {
$event.preventDefault();
// reset search state and show jump keys
$scope.$parent.search = '';
$rootScope.showJumpKeys = true;
return true;
}