* key.c (correct_key_code): Treat Shift-Backspace as Backspace.

This commit is contained in:
Pavel Roskin 2003-06-09 05:59:00 +00:00
parent f55e75b70a
commit bd8919e567
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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;