Skip to content

Commit 9f898e9

Browse files
Don't process key events when the text input is not requested (flutter#18990)
1 parent 4bd6aea commit 9f898e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/platform/linux/fl_text_input_plugin.cc

+4
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ FlTextInputPlugin* fl_text_input_plugin_new(FlBinaryMessenger* messenger) {
288288
gboolean fl_text_input_plugin_filter_keypress(FlTextInputPlugin* self,
289289
GdkEventKey* event) {
290290
g_return_val_if_fail(FL_IS_TEXT_INPUT_PLUGIN(self), FALSE);
291+
292+
if (self->client_id == kClientIdUnset)
293+
return FALSE;
294+
291295
if (gtk_im_context_filter_keypress(self->im_context, event))
292296
return TRUE;
293297

0 commit comments

Comments
 (0)