mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-07 22:43:09 +00:00
InputText: Minor tweak.
This commit is contained in:
parent
7ccbb765e2
commit
cc15512bfc
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ struct IMGUI_API ImGuiTextEditState
|
|||
void CursorClamp() { StbState.cursor = ImMin(StbState.cursor, CurLenW); StbState.select_start = ImMin(StbState.select_start, CurLenW); StbState.select_end = ImMin(StbState.select_end, CurLenW); }
|
||||
bool HasSelection() const { return StbState.select_start != StbState.select_end; }
|
||||
void ClearSelection() { StbState.select_start = StbState.select_end = StbState.cursor; }
|
||||
void SelectAll() { StbState.select_start = 0; StbState.select_end = CurLenW; StbState.cursor = StbState.select_end; StbState.has_preferred_x = false; }
|
||||
void SelectAll() { StbState.select_start = 0; StbState.cursor = StbState.select_end = CurLenW; StbState.has_preferred_x = false; }
|
||||
void OnKeyPressed(int key);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue