mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-13 15:42:23 -07:00
fix 'cut' event being missed in standalone cell
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user