Map Alt-F4 to exit and Alt-F10 to reset

This commit is contained in:
David Schmenk 2013-11-24 15:19:07 +00:00
parent 6a22f2d28b
commit 26d9202ef9
1 changed files with 15 additions and 12 deletions

View File

@ -1738,7 +1738,16 @@ adb_physical_key_update(int a2code, int is_up)
// OG Disabled special keys (but warp)
#ifndef ACTIVEGS
case 0x04: /* F4 - emulator config panel */
cfg_toggle_config_panel();
if (CMD_DOWN)
{
printf("Quit!\n");
iwm_shut();
my_exit(1);
}
else
{
cfg_toggle_config_panel();
}
break;
case 0x05: /* F5 - emulator clipboard paste */
clipboard_paste();
@ -1778,25 +1787,19 @@ adb_physical_key_update(int a2code, int is_up)
case 0x0a: /* F10 - change a2vid paletter */
if (SHIFT_DOWN) {
#ifdef TOGGLE_STATUS
if (CMD_DOWN)
{
printf("Quit!\n");
iwm_shut();
my_exit(1);
}
else
{
extern void x_toggle_status_lines();
x_toggle_status_lines();
}
#endif
} else if (CMD_DOWN) {
do_reset();
return;
} else {
change_a2vid_palette((g_a2vid_palette + 1) & 0xf);
}
break;
case 0x0b: /* F11 - full screen */
g_fullscreen = !g_fullscreen;
x_full_screen(g_fullscreen);
g_fullscreen = !g_fullscreen;
x_full_screen(g_fullscreen);
break;
#endif
}