Don't translate F8/F9/F10 into printable characters.

This commit is contained in:
Chris Young 2015-11-16 00:16:52 +00:00
parent 6fbe30c617
commit 5ad337a7b5

View File

@ -1211,6 +1211,9 @@ int ami_key_to_nskey(ULONG keycode, struct InputEvent *ie)
else nskey = NS_KEY_TAB; else nskey = NS_KEY_TAB;
break; break;
case RAWKEY_F5: case RAWKEY_F5:
case RAWKEY_F8:
case RAWKEY_F9:
case RAWKEY_F10:
case RAWKEY_HELP: case RAWKEY_HELP:
// don't translate // don't translate
nskey = keycode; nskey = keycode;
@ -2333,6 +2336,7 @@ static void ami_handle_msg(void)
ami_gui_history(gwin, true); ami_gui_history(gwin, true);
break; break;
/* RawKeys. NB: These are passthrus in ami_key_to_nskey() */
case RAWKEY_F5: // reload case RAWKEY_F5: // reload
if(browser_window_reload_available(gwin->gw->bw)) if(browser_window_reload_available(gwin->gw->bw))
browser_window_reload(gwin->gw->bw,false); browser_window_reload(gwin->gw->bw,false);