未验证 提交 9f898e98 编写于 作者: R Robert Ancell 提交者: GitHub

Don't process key events when the text input is not requested (#18990)

上级 4bd6aea0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册