Skip to content

Conversation

@kLabz
Copy link
Contributor

@kLabz kLabz commented May 19, 2020

Currently, sdl keycodes are translated as-is to "windows virtual-key codes", which are not a 1-1 map and cause conflicts (#713, for example).

This PR avoids the automatic mapping of the 2048 first keycodes for hlsdl, and maps manually the missing control keys (backspace, tab, etc.). The actual characters are still available via e.charCode.

Fixes #713

@ncannasse
Copy link
Member

The fix will break custom handling of some special keys that are not covered by "standard" key codes, such as ² on french keyboard, etc.

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.

TextInput under SDL

2 participants