mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-03 20:38:40 +00:00
fix 'cut' event being missed in standalone cell
This commit is contained in:
@@ -4535,6 +4535,7 @@ rd_view_ui(Rng2F32 rect)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// rjf: compute visual params
|
// rjf: compute visual params
|
||||||
|
ProfBegin("compute visual params");
|
||||||
B32 cell_has_fancy_editors = (!(cell->flags & RD_WatchCellFlag_NoEval));
|
B32 cell_has_fancy_editors = (!(cell->flags & RD_WatchCellFlag_NoEval));
|
||||||
B32 is_button = !!(cell_info.flags & RD_WatchCellFlag_Button);
|
B32 is_button = !!(cell_info.flags & RD_WatchCellFlag_Button);
|
||||||
B32 has_background = !!(cell_info.flags & RD_WatchCellFlag_Background);
|
B32 has_background = !!(cell_info.flags & RD_WatchCellFlag_Background);
|
||||||
@@ -4549,6 +4550,7 @@ rd_view_ui(Rng2F32 rect)
|
|||||||
is_button = 0;
|
is_button = 0;
|
||||||
is_activated_on_single_click = 0;
|
is_activated_on_single_click = 0;
|
||||||
}
|
}
|
||||||
|
ProfEnd();
|
||||||
|
|
||||||
// rjf: determine query needle
|
// rjf: determine query needle
|
||||||
String8 needle = rd_view_query_input();
|
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
|
//- rjf: focus is hot & copy event -> remember to copy this box tree's text content
|
||||||
if(is_focus_hot &&
|
if(is_focus_hot &&
|
||||||
evt->flags & UI_EventFlag_Copy &&
|
evt->flags & UI_EventFlag_Copy &&
|
||||||
|
!(evt->flags & UI_EventFlag_Delete) &&
|
||||||
!ui_key_match(ui_key_zero(), box->key))
|
!ui_key_match(ui_key_zero(), box->key))
|
||||||
{
|
{
|
||||||
ui_state->clipboard_copy_key = box->key;
|
ui_state->clipboard_copy_key = box->key;
|
||||||
|
|||||||
Reference in New Issue
Block a user