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:
Philippe Proulx 2013-10-27 01:47:31 -04:00
parent 92dc4736ea
commit 782b659474

View file

@ -599,6 +599,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
}
// Handle ctrl-g
if($event.ctrlKey && (code == 103 || code == 71)) {
$event.preventDefault();
document.getElementById('bufferFilter').focus();
return true;
}