Skip to content

Commit 1007613

Browse files
committed
Enable native Windows menu keyboard shortcuts
1 parent bc3f994 commit 1007613

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

platforms/shared/desktop/application.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ static bool sdl_init(void)
309309
{
310310
Debug("Initializing SDL...");
311311

312+
#if defined(_WIN32)
313+
SDL_SetHint(SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS, "1");
314+
#endif
315+
312316
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMEPAD))
313317
{
314318
SDL_ERROR("SDL_Init");

0 commit comments

Comments
 (0)