1
1

tweaks: reshuffle some conditions, putting the least likely one first

Этот коммит содержится в:
Benno Schulenberg 2018-11-04 19:42:03 +01:00
родитель f02e2d3b6e
Коммит 89760cd6ec

Просмотреть файл

@ -609,13 +609,14 @@ int parse_kbinput(WINDOW *win)
return SHIFT_TAB;
shift_held = TRUE;
}
/* Are both Shift and Ctrl being held while Delete is pressed? */
if ((modifiers & 0x05) == 0x05 && retval == KEY_DC)
return CONTROL_SHIFT_DELETE;
/* Is Meta being held while Delete is pressed? */
if (modifiers == 0x08 && retval == KEY_DC) {
meta_key = TRUE;
return ALT_DELETE;
/* Is Delete pressed together with either Ctrl+Shift or Meta? */
if (retval == KEY_DC) {
if ((modifiers & 0x05) == 0x05)
return CONTROL_SHIFT_DELETE;
if (modifiers == 0x08) {
meta_key = TRUE;
return ALT_DELETE;
}
}
#endif
/* Is Ctrl being held? */