Skip to content

Disable mac os press and hold behavior#2887

Open
riccardobl wants to merge 1 commit into
jMonkeyEngine:masterfrom
riccardobl:machint
Open

Disable mac os press and hold behavior#2887
riccardobl wants to merge 1 commit into
jMonkeyEngine:masterfrom
riccardobl:machint

Conversation

@riccardobl

Copy link
Copy Markdown
Member

This disables the behavior where if you press and hold a key in mac os, it might, for example, show you the accent selector somewhere next to the game window

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a call to SDL_SetHint(SDL_HINT_MAC_PRESS_AND_HOLD, "0") in LwjglWindow.java before initializing the SDL subsystem. This change disables the macOS "press and hold" feature for character accents, allowing standard key repeat behavior. There are no review comments, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant