mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* key.c (correct_key_code): Treat Shift-Backspace as Backspace.
This commit is contained in:
parent
f55e75b70a
commit
bd8919e567
@ -1,3 +1,7 @@
|
||||
2003-06-09 David Sterba <dave@jikos.cz>
|
||||
|
||||
* key.c (correct_key_code): Treat Shift-Backspace as Backspace.
|
||||
|
||||
2003-06-06 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* util.h: Add new match_type - match_regex.
|
||||
|
@ -596,6 +596,11 @@ correct_key_code (int code)
|
||||
mod &= ~KEY_M_CTRL;
|
||||
}
|
||||
|
||||
/* Shift+BackSpace is backspace */
|
||||
if (c == KEY_BACKSPACE && (mod & KEY_M_SHIFT)) {
|
||||
mod &= ~KEY_M_SHIFT;
|
||||
}
|
||||
|
||||
/* Convert Shift+Fn to F(n+10) */
|
||||
if (c >= KEY_F (1) && c <= KEY_F (10) && (mod & KEY_M_SHIFT)) {
|
||||
c += 10;
|
||||
|
Loading…
Reference in New Issue
Block a user