mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 06:56:58 +00:00
C-h should not be treated specially and represented internally as \b but
as C-h like the other Ctrl keys. Backspace is already handled separately if it VERASE.
This commit is contained in:
@ -608,8 +608,9 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
|
|||||||
* key and no modifiers.
|
* key and no modifiers.
|
||||||
*/
|
*/
|
||||||
if (!(key & ~KEYC_MASK_KEY)) {
|
if (!(key & ~KEYC_MASK_KEY)) {
|
||||||
if (key == C0_BS || key == C0_HT ||
|
if (key == C0_HT ||
|
||||||
key == C0_CR || key == C0_ESC ||
|
key == C0_CR ||
|
||||||
|
key == C0_ESC ||
|
||||||
(key >= 0x20 && key <= 0x7f)) {
|
(key >= 0x20 && key <= 0x7f)) {
|
||||||
ud.data[0] = key;
|
ud.data[0] = key;
|
||||||
input_key_write(__func__, bev, &ud.data[0], 1);
|
input_key_write(__func__, bev, &ud.data[0], 1);
|
||||||
|
@ -812,8 +812,9 @@ first_key:
|
|||||||
* lowercase, so ^A becomes a|CTRL.
|
* lowercase, so ^A becomes a|CTRL.
|
||||||
*/
|
*/
|
||||||
onlykey = key & KEYC_MASK_KEY;
|
onlykey = key & KEYC_MASK_KEY;
|
||||||
if (onlykey < 0x20 && onlykey != C0_BS &&
|
if (onlykey < 0x20 &&
|
||||||
onlykey != C0_HT && onlykey != C0_CR &&
|
onlykey != C0_HT &&
|
||||||
|
onlykey != C0_CR &&
|
||||||
onlykey != C0_ESC) {
|
onlykey != C0_ESC) {
|
||||||
onlykey |= 0x40;
|
onlykey |= 0x40;
|
||||||
if (onlykey >= 'A' && onlykey <= 'Z')
|
if (onlykey >= 'A' && onlykey <= 'Z')
|
||||||
|
Reference in New Issue
Block a user