nuklear
nuklear copied to clipboard
NK_EDIT_DEACTIVATED bug
If there are tow or more edit boxes, the NK_EDIT_DEACTIVATED flag may not be triggered as expected. Because the second edit box could not remember the correct active state (prev_state).
For example: EditBox1 (inactive) EditBox2 (active)
When click EditBox1:
- EditBox1 becomes active
- According to the source code, EditBox2's prev_state is set to false as the current active edit is EditBox1, which should be true.
- Based on the wrong prev_state, the NK_EDIT_DEACTIVATED flag can not be set to the new state of EditBox2.