top-level text editing mode state, so that textual keys can be used for hotkeys, but just become disabled when text editing is actually happening

This commit is contained in:
Ryan Fleury committed 2024-10-07 13:54:30 -07:00
1 parent 084ef67583
commit 95dd544871
4 files changed
+20 -5

No files matched your search

+1
View File
@@ -3028,6 +3028,7 @@ rd_line_edit(RD_LineEditFlags flags, S32 depth, FuzzyMatchRangeList *matches, Tx
if(!(flags & RD_LineEditFlag_DisableEdit) && (is_focus_active || focus_started))
{
Temp scratch = scratch_begin(0, 0);
rd_state->text_edit_mode = 1;
for(UI_Event *evt = 0; ui_next_event(&evt);)
{
String8 edit_string = str8(edit_buffer, edit_string_size_out[0]);