mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Keep modifiers on backspace when translating it.
This commit is contained in:
parent
5dfe9db788
commit
4bc445f080
@ -157,7 +157,7 @@ input_key(struct window_pane *wp, key_code key, struct mouse_event *m)
|
|||||||
u_int i;
|
u_int i;
|
||||||
size_t dlen;
|
size_t dlen;
|
||||||
char *out;
|
char *out;
|
||||||
key_code justkey;
|
key_code justkey, newkey;
|
||||||
struct utf8_data ud;
|
struct utf8_data ud;
|
||||||
|
|
||||||
log_debug("writing key 0x%llx (%s) to %%%u", key,
|
log_debug("writing key 0x%llx (%s) to %%%u", key,
|
||||||
@ -179,9 +179,10 @@ input_key(struct window_pane *wp, key_code key, struct mouse_event *m)
|
|||||||
|
|
||||||
/* Is this backspace? */
|
/* Is this backspace? */
|
||||||
if ((key & KEYC_MASK_KEY) == KEYC_BSPACE) {
|
if ((key & KEYC_MASK_KEY) == KEYC_BSPACE) {
|
||||||
key = options_get_number(global_options, "backspace");
|
newkey = options_get_number(global_options, "backspace");
|
||||||
if (key >= 0x7f)
|
if (newkey >= 0x7f)
|
||||||
key = '\177';
|
newkey = '\177';
|
||||||
|
key = newkey|(key & KEYC_MASK_MOD);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user