mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't process key events when the text input is not requested (#18990)
This commit is contained in:
parent
4bd6aea07c
commit
9f898e98c2
@ -288,6 +288,10 @@ FlTextInputPlugin* fl_text_input_plugin_new(FlBinaryMessenger* messenger) {
|
||||
gboolean fl_text_input_plugin_filter_keypress(FlTextInputPlugin* self,
|
||||
GdkEventKey* event) {
|
||||
g_return_val_if_fail(FL_IS_TEXT_INPUT_PLUGIN(self), FALSE);
|
||||
|
||||
if (self->client_id == kClientIdUnset)
|
||||
return FALSE;
|
||||
|
||||
if (gtk_im_context_filter_keypress(self->im_context, event))
|
||||
return TRUE;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user