Skip to content
Snippets Groups Projects
Commit ce7c2cca authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Make ALT-F4 map to CIO_KEY_QUIT in GDI mode.

Fixes issue 124 on Sourceforge.
parent 862753d6
No related branches found
No related tags found
No related merge requests found
Pipeline #5831 passed
......@@ -768,7 +768,11 @@ magic_message(MSG msg)
PostMessageW(win, WM_USER_SETPOS, window_left, window_top);
}
}
gdi_add_key(keyval[i].ALT);
if (keyval[i].ALT == 0x6b00) { // ALT-F4
gdi_add_key(CIO_KEY_QUIT);
}
else
gdi_add_key(keyval[i].ALT);
return true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment