mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
Don't translate F8/F9/F10 into printable characters.
This commit is contained in:
parent
6fbe30c617
commit
5ad337a7b5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user