Switch between buffers with left Alt key only
Right Alt key, which is the same as Ctrl+left Alt, is used in several keymaps to input special characters, like right Alt+2 in Canadian French to input '@'. Do not switch between buffers when using right Alt. Fixes #67
This commit is contained in:
parent
0da6014711
commit
92dc4736ea
1 changed files with 1 additions and 1 deletions
|
@ -576,7 +576,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
// Support different browser quirks
|
// Support different browser quirks
|
||||||
var code = $event.keyCode ? $event.keyCode : $event.charCode;
|
var code = $event.keyCode ? $event.keyCode : $event.charCode;
|
||||||
|
|
||||||
if ($event.altKey && (code > 47 && code < 58)) {
|
if ($event.altKey && !$event.ctrlKey && (code > 47 && code < 58)) {
|
||||||
if (code == 48) {
|
if (code == 48) {
|
||||||
code = 58;
|
code = 58;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue