Fix #8340 - shift-tab in V! is working again

This commit is contained in:
pancake 2017-08-27 19:31:17 +02:00
parent fa1706b663
commit 4ab226a91b
2 changed files with 6 additions and 2 deletions

View File

@ -97,10 +97,13 @@ R_API int r_cons_arrow_to_hjkl(int ch) {
case 0x06: ch='l'; break; // emacs right (ctrl + f)
case 0x02: ch='h'; break; // emacs left (ctrl + b)
}
if (ch != 0x1b)
if (ch != 0x1b) {
return ch;
}
ch = r_cons_readchar ();
if (!ch) return 0;
if (!ch) {
return 0;
}
switch (ch) {
case 0x1b:
ch = 'q'; // XXX: must be 0x1b (R_CONS_KEY_ESC)

View File

@ -890,6 +890,7 @@ repeat:
menu_x = 0;
}
break;
case 'Z': // SHIFT-TAB
case 'K':
menu_y = 0;
menu_x = -1;