Skip to content

Commit b09a112

Browse files
committed
[parser-overlay] fix handling of buttons
1 parent 6464c72 commit b09a112

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/logfile_sub_source.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3224,10 +3224,15 @@ logfile_sub_source::text_handle_mouse(
32243224
mouse_event& me)
32253225
{
32263226
if (tc.get_overlay_selection()) {
3227+
auto nci = ncinput{};
32273228
if (me.is_click_in(mouse_button_t::BUTTON_LEFT, 2, 4)) {
3228-
this->list_input_handle_key(tc, {' '});
3229+
nci.id = ' ';
3230+
nci.eff_text[0] = ' ';
3231+
this->list_input_handle_key(tc, nci);
32293232
} else if (me.is_click_in(mouse_button_t::BUTTON_LEFT, 5, 6)) {
3230-
this->list_input_handle_key(tc, {'#'});
3233+
nci.id = '#';
3234+
nci.eff_text[0] = '#';
3235+
this->list_input_handle_key(tc, nci);
32313236
}
32323237
}
32333238
return true;

0 commit comments

Comments
 (0)