Skip to content

Commit bdd5fb8

Browse files
committed
sdl3: Set hint to disable the accents popup on macOS when holding down keys. [R. Belmont]
1 parent 06006dc commit bdd5fb8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/osd/sdl3/sdlmain.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,15 @@ int main(int argc, char** argv)
8080
diagnostics_module::get_instance()->init_crash_diagnostics();
8181

8282
#if defined(SDLMAME_ANDROID)
83-
/* Enable standard application logging */
83+
// Enable standard application logging
8484
SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_VERBOSE);
8585
#endif
8686

87+
#if defined(SDLMAME_MACOSX)
88+
// disable the popup accents menu on macOS
89+
SDL_SetHint(SDL_HINT_MAC_PRESS_AND_HOLD, 0);
90+
#endif
91+
8792
// FIXME: this should be done differently
8893

8994
#ifdef SDLMAME_UNIX

0 commit comments

Comments
 (0)