Prevent default action for Ctrl+G
Ctrl+G is used in Chrome/Chromium, at least, to find the next match (just like F3).
This commit is contained in:
parent
92dc4736ea
commit
782b659474
1 changed files with 1 additions and 0 deletions
|
@ -599,6 +599,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
}
|
}
|
||||||
// Handle ctrl-g
|
// Handle ctrl-g
|
||||||
if($event.ctrlKey && (code == 103 || code == 71)) {
|
if($event.ctrlKey && (code == 103 || code == 71)) {
|
||||||
|
$event.preventDefault();
|
||||||
document.getElementById('bufferFilter').focus();
|
document.getElementById('bufferFilter').focus();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue