Skip to content

Commit

Permalink
Always send key events, even if they're used for text input. (#18991)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell committed Jun 11, 2020
1 parent 5171fbd commit 4bd6aea
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions shell/platform/linux/fl_view.cc
Expand Up @@ -330,10 +330,8 @@ static gboolean fl_view_motion_notify_event(GtkWidget* widget,
static gboolean fl_view_key_press_event(GtkWidget* widget, GdkEventKey* event) {
FlView* self = FL_VIEW(widget);

if (fl_text_input_plugin_filter_keypress(self->text_input_plugin, event))
return TRUE;

fl_key_event_plugin_send_key_event(self->key_event_plugin, event);
fl_text_input_plugin_filter_keypress(self->text_input_plugin, event);

return TRUE;
}
Expand All @@ -343,10 +341,8 @@ static gboolean fl_view_key_release_event(GtkWidget* widget,
GdkEventKey* event) {
FlView* self = FL_VIEW(widget);

if (fl_text_input_plugin_filter_keypress(self->text_input_plugin, event))
return TRUE;

fl_key_event_plugin_send_key_event(self->key_event_plugin, event);
fl_text_input_plugin_filter_keypress(self->text_input_plugin, event);

return TRUE;
}
Expand Down

0 comments on commit 4bd6aea

Please sign in to comment.