Fix for better alt-backspace support in unix-like terminals, patch from Serguei E. Leontiev

This commit is contained in:
Semen Panevin 2015-12-03 20:42:18 +00:00
parent 7bd894d7f3
commit 0daa950c4a

View File

@ -1455,7 +1455,7 @@ gkey kbxget_raw(int mode) {
and (0 <= key2) and (0 <= key2)
and (key2 < sizeof(scancode_table)/sizeof(scancode_table[0]))) and (key2 < sizeof(scancode_table)/sizeof(scancode_table[0])))
k = (scancode_table[key2]); k = (scancode_table[key2]);
else if((key2 == '\010') or (key2 == KEY_BACKSPACE)) else if((key2 == '\010') or (key2 == KEY_BACKSPACE) or (key2 == '\177'))
k = Key_A_BS; k = Key_A_BS;
else if(key2 == '\011') else if(key2 == '\011')
k = Key_A_Tab; k = Key_A_Tab;