mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 15:26:58 +00:00
If the application has not requested extended keys, then C-1 sends 1 not
nothing.
This commit is contained in:
@ -496,8 +496,12 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* No builtin key sequence; construct an extended key sequence. */
|
/* No builtin key sequence; construct an extended key sequence. */
|
||||||
if (~s->mode & MODE_KEXTENDED)
|
if (~s->mode & MODE_KEXTENDED) {
|
||||||
|
if ((key & KEYC_MASK_MODIFIERS) == KEYC_CTRL &&
|
||||||
|
(key & KEYC_MASK_KEY) < KEYC_BASE)
|
||||||
|
return (input_key(s, bev, key & ~KEYC_CTRL));
|
||||||
goto missing;
|
goto missing;
|
||||||
|
}
|
||||||
outkey = (key & KEYC_MASK_KEY);
|
outkey = (key & KEYC_MASK_KEY);
|
||||||
switch (key & KEYC_MASK_MODIFIERS) {
|
switch (key & KEYC_MASK_MODIFIERS) {
|
||||||
case KEYC_SHIFT:
|
case KEYC_SHIFT:
|
||||||
|
Reference in New Issue
Block a user