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

Holding down delete key only remove one character #877

Open
lautriva opened this issue Jul 25, 2019 · 2 comments
Open

Holding down delete key only remove one character #877

lautriva opened this issue Jul 25, 2019 · 2 comments

Comments

@lautriva
Copy link

First thing, fantastic library :)
Nevertheless, I have an issue:
In text inputs, when backspace key is pressed and then hold down, only character at a time is removed

For reproducing, try typing some long text in the text input then press backspace key without releasing it in nuklear and in your browser / texteditor (for example)

  • nuklear behavior: only one character removed at a time
  • browser / text editor behavior: characters removed continuously until the backspace key is released

Fixing that in textbox would be appreciated too

@dumblob
Copy link
Contributor

dumblob commented Jul 25, 2019

Which backend are you using? Nuklear itself (i.e. without backends which are not part of the library, but reside in this repository as "demos" to be easily found by potential users) does basically no keyboard handling. So it's up to the backend - feel free to read the code of your backend, adjust it to your needs, make a pull request and I'll happily merge it 😉.

@lautriva
Copy link
Author

I'm testing with the glfw_opengl2 backend / demo
I'll will take a look at that 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants