It was impossible to enter negative number.
Now pressing KEY_MINUS toggles sign for the value when value is not 0.
Due to original implementation it's not possible to start entry with minus symbol or have added minus while the value is 0.
fix max index
I was having issues using it in conjunction with raylib (in Windows), so added these annotations here.
Let me know if it's okay, thanks for the project, Ray!!
...the bar. This example never expected it and was caching Window
Position, which means that position was outdated at the moment you moved
the window via other means than dragging the bar.
Fixes: https://github.com/raysan5/raygui/issues/468
* GuiTextBox: Fix possible overflow when handling backspace and delete
Simplify code a bit by removing unnecessary checks
* GuiTextBox: Fix CTRL+Backspace behavior
Remove undefined behavior (previously called isspace with oob values)
Fix unable to delete first character
Fix handling of symbols like any other "standard" input field or text editor on Windows does it
* GuiTextBox: Add CTRL+DELETE, CTRL+LEFT and CTRL+RIGHT handling
Copy behavior from programs like notepad, Notepad++, OneNote, address bar in Edge, etc.
* GuiTextBox: Simplify and improve auto-cursor code
Remove one global variable and compact checks into one bool variable
Fix auto cursor triggering immediately when button is held when clicking edit box
Tuned the values, so they match cooldown and delay when entering text
* GuiTextBox: Bring some checks in-line with the rest of the function
* Add support for paste (CTRL+V) in GuiTextBox
* Remove commented out code
(a more elegant but incomplete solution, which does not check for control characters)