inputmethod: Make sure to test AutoCompletion

We were doing AutoCapitalization twice, I imagine it was a copy&paste
situation.
This commit is contained in:
Aleix Pol 2021-05-21 19:16:57 +02:00
parent 7e80c54d5d
commit 75ba7fdc90

View file

@ -162,8 +162,8 @@ void InputMethodContextV1Interface::sendContentType(TextInputContentHints hint,
if (hint.testFlag(TextInputContentHint::AutoCorrection)) { if (hint.testFlag(TextInputContentHint::AutoCorrection)) {
contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_auto_correction; contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_auto_correction;
} }
if (hint.testFlag(TextInputContentHint::AutoCapitalization)) { if (hint.testFlag(TextInputContentHint::AutoCompletion)) {
contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_auto_capitalization; contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_auto_completion;
} }
if (hint.testFlag(TextInputContentHint::LowerCase)) { if (hint.testFlag(TextInputContentHint::LowerCase)) {
contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_lowercase; contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_lowercase;