nuklear icon indicating copy to clipboard operation
nuklear copied to clipboard

NK_EDIT_DEACTIVATED bug

Open ax-jason opened this issue 6 years ago • 0 comments

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:

  1. EditBox1 becomes active
  2. According to the source code, EditBox2's prev_state is set to false as the current active edit is EditBox1, which should be true.
  3. Based on the wrong prev_state, the NK_EDIT_DEACTIVATED flag can not be set to the new state of EditBox2.

ax-jason avatar Mar 16 '19 12:03 ax-jason