mirror of
https://github.com/tmux/tmux.git
synced 2025-12-21 14:56:05 +00:00
Fix key code for M-BSpace, GitHub issue 4717.
This commit is contained in:
10
tty-keys.c
10
tty-keys.c
@@ -909,10 +909,16 @@ first_key:
|
|||||||
* used. termios should have a better idea.
|
* used. termios should have a better idea.
|
||||||
*/
|
*/
|
||||||
bspace = tty->tio.c_cc[VERASE];
|
bspace = tty->tio.c_cc[VERASE];
|
||||||
if (bspace != _POSIX_VDISABLE && key == bspace) {
|
if (bspace != _POSIX_VDISABLE) {
|
||||||
log_debug("%s: key %#llx is backspace", c->name, key);
|
if (key == bspace) {
|
||||||
|
log_debug("%s: key %#llx is BSpace", c->name, key);
|
||||||
key = KEYC_BSPACE;
|
key = KEYC_BSPACE;
|
||||||
}
|
}
|
||||||
|
if (key == (bspace|KEYC_META)) {
|
||||||
|
log_debug("%s: key %#llx is M-BSpace", c->name, key);
|
||||||
|
key = KEYC_BSPACE|KEYC_META;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fix up all C0 control codes that don't have a dedicated key into
|
* Fix up all C0 control codes that don't have a dedicated key into
|
||||||
|
|||||||
Reference in New Issue
Block a user