1
0
mirror of https://github.com/ocornut/imgui.git synced 2025-01-18 17:24:09 +01:00

InputText: when keys are being input while mouse is dragging, disable mouse drag until button release (#429)

This commit is contained in:
ocornut 2015-12-11 22:20:16 +00:00
parent bf83ac8b55
commit 4bfd5cd95f

View File

@ -7046,6 +7046,7 @@ void ImGuiTextEditState::OnKeyPressed(int key)
{
stb_textedit_key(this, &StbState, key);
CursorFollow = true;
SelectedAllMouseLock = true;
CursorAnimReset();
}