1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Bug 772: Recognize ESC [ Z as Shift-Tab, and bind it like Alt-Tab by default.

[ From commit b42f0ba153 in ELinks
  0.12.GIT.  I'll add a NEWS entry as a separate commit.  --KON ]
This commit is contained in:
Kalle Olavi Niemitalo 2006-09-17 12:38:23 +03:00 committed by Kalle Olavi Niemitalo
parent b406adce1f
commit 0003e4762c
2 changed files with 5 additions and 0 deletions

View File

@ -678,6 +678,7 @@ static struct default_kb default_main_keymap[] = {
{ { KBD_RIGHT, KBD_MOD_CTRL }, ACT_MAIN_LINK_FOLLOW_RELOAD },
{ { KBD_TAB, KBD_MOD_NONE }, ACT_MAIN_FRAME_NEXT },
{ { KBD_TAB, KBD_MOD_ALT }, ACT_MAIN_FRAME_PREV },
{ { KBD_TAB, KBD_MOD_SHIFT}, ACT_MAIN_FRAME_PREV },
{ { KBD_UP, KBD_MOD_NONE }, ACT_MAIN_MOVE_LINK_PREV },
{ { 0, 0 }, 0 }
};
@ -712,6 +713,7 @@ static struct default_kb default_edit_keymap[] = {
{ { KBD_RIGHT, KBD_MOD_NONE }, ACT_EDIT_RIGHT },
{ { KBD_TAB, KBD_MOD_NONE }, ACT_EDIT_NEXT_ITEM },
{ { KBD_TAB, KBD_MOD_ALT }, ACT_EDIT_PREVIOUS_ITEM },
{ { KBD_TAB, KBD_MOD_SHIFT}, ACT_EDIT_PREVIOUS_ITEM },
{ { KBD_UP, KBD_MOD_NONE }, ACT_EDIT_UP },
{ { 0, 0 }, 0 }
};
@ -748,6 +750,7 @@ static struct default_kb default_menu_keymap[] = {
{ { KBD_RIGHT, KBD_MOD_NONE }, ACT_MENU_RIGHT },
{ { KBD_TAB, KBD_MOD_NONE }, ACT_MENU_NEXT_ITEM },
{ { KBD_TAB, KBD_MOD_ALT }, ACT_MENU_PREVIOUS_ITEM },
{ { KBD_TAB, KBD_MOD_SHIFT}, ACT_MENU_PREVIOUS_ITEM },
{ { KBD_UP, KBD_MOD_NONE }, ACT_MENU_UP },
{ { 0, 0 }, 0}
};

View File

@ -694,6 +694,8 @@ decode_terminal_escape_sequence(struct itrm *itrm, struct term_event *ev)
case 'W': kbd.key = KBD_F11; break;
case 'X': kbd.key = KBD_F12; break;
case 'Z': kbd.key = KBD_TAB; kbd.modifier = KBD_MOD_SHIFT; break;
case 'z': switch (v) {
case 247: kbd.key = KBD_INS; break;
case 214: kbd.key = KBD_HOME; break;