fix 'cut' event being missed in standalone cell

This commit is contained in:
Ryan Fleury
2025-04-26 20:49:03 -07:00
parent 1e82d31eba
commit 693ba7d077
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -4535,6 +4535,7 @@ rd_view_ui(Rng2F32 rect)
else
{
// rjf: compute visual params
ProfBegin("compute visual params");
B32 cell_has_fancy_editors = (!(cell->flags & RD_WatchCellFlag_NoEval));
B32 is_button = !!(cell_info.flags & RD_WatchCellFlag_Button);
B32 has_background = !!(cell_info.flags & RD_WatchCellFlag_Background);
@@ -4549,6 +4550,7 @@ rd_view_ui(Rng2F32 rect)
is_button = 0;
is_activated_on_single_click = 0;
}
ProfEnd();
// rjf: determine query needle
String8 needle = rd_view_query_input();
+1
View File
@@ -2810,6 +2810,7 @@ ui_signal_from_box(UI_Box *box)
//- rjf: focus is hot & copy event -> remember to copy this box tree's text content
if(is_focus_hot &&
evt->flags & UI_EventFlag_Copy &&
!(evt->flags & UI_EventFlag_Delete) &&
!ui_key_match(ui_key_zero(), box->key))
{
ui_state->clipboard_copy_key = box->key;