vurtun/nuklear

Holding down delete key only remove one character

lautriva opened this issue · 2 comments

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

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 😉.

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