Skip to content
This repository was archived by the owner on Dec 2, 2019. It is now read-only.

Fix backspace key handling on the SFML OpenGL2 platform demo#932

Open
bharadwaj-raju wants to merge 2 commits intovurtun:masterfrom
bharadwaj-raju:sfml-opengl2-backspace-patch-1
Open

Fix backspace key handling on the SFML OpenGL2 platform demo#932
bharadwaj-raju wants to merge 2 commits intovurtun:masterfrom
bharadwaj-raju:sfml-opengl2-backspace-patch-1

Conversation

@bharadwaj-raju
Copy link

Previously, backspace characters would be passed directly to nk_input_unicode, resulting in backspace not working and instead simply inserting ASCII backspace '\b' into the text.
This fixes it by filtering out '\b' (ASCII code 8) in the event handler. Now backspace works as expected.

Previously, backspace characters would be passed directly to nk_input_unicode, resulting in backspace not working and instead simply inserting ASCII backspace '\b' into the text.
This fixes it by filtering out '\b' in the event handler.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant