mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 20:18:47 +02:00
InputText: Fixed a tricky edge case, ensuring value is always written back on the frame where IsItemDeactivated() returns true (#4714)
Altered ItemAdd() clipping rule to keep previous-frame ActiveId unclipped to support that late commit. Also, MarkItemEdited() may in theory need to do: if (g.ActiveIdPreviousFrame == id) g.ActiveIdPreviousFrameHasBeenEditedBefore = true; But this should already be set so not adding now.
This commit is contained in:
@ -39,6 +39,11 @@ Breaking Changes:
|
||||
|
||||
Other changes:
|
||||
|
||||
- InputText: Fixed a tricky edge case, ensuring value is always written back on the
|
||||
frame where IsItemDeactivated() returns true, in order to allow usage without user
|
||||
retaining underlying data. While we don't really want to encourage user not retaining
|
||||
underlying data, in the absence of a "late commit" behavior/flag we understand it may
|
||||
be desirable to take advantage of this trick. (#4714)
|
||||
- Backends: OpenGL3: Fixed GL loader crash when GL_VERSION returns NULL. (#6154, #4445, #3530)
|
||||
- Backends: GLFW: Fixed key modifiers handling on secondary viewports. (#6248, #6034) [@aiekick]
|
||||
- Examples: Windows: Added 'misc/debuggers/imgui.natstepfilter' file to all Visual Studio projects,
|
||||
|
Reference in New Issue
Block a user