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;
break;
case RAWKEY_F5:
case RAWKEY_F8:
case RAWKEY_F9:
case RAWKEY_F10:
case RAWKEY_HELP:
// don't translate
nskey = keycode;
@ -2333,6 +2336,7 @@ static void ami_handle_msg(void)
ami_gui_history(gwin, true);
break;
/* RawKeys. NB: These are passthrus in ami_key_to_nskey() */
case RAWKEY_F5: // reload
if(browser_window_reload_available(gwin->gw->bw))
browser_window_reload(gwin->gw->bw,false);