Skip to content
Commit 4f2c3a00 authored by Xuetian Weng's avatar Xuetian Weng Committed by Xuetian Weng
Browse files

Change InputMethod::show() and InputMethod::hide() to not change active state.

Qt usually request InputMethod::hide() upon unfocus, but
InputMethod::show() is actually never called if focus transfer is done
by keyboard, which leads to a permanent disabled input method state.

It can be easily reproduced with a window with two text field, e.g.
QFileDialog, by pressing tab to switch the focused widget.

The semantics of hide/show should not deactivate the input method.
Instead, it should simply hide/show the input panel. Also it should not
be a hard request for input method to permanently hide the window. When
input method asked to show it again, the input panel window should be
shown.
parent 119f0d02
Pipeline #113686 passed with stage
in 14 minutes and 33 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment