From 75ba7fdc900695a1b89b57be56dfcf64f7afe844 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 21 May 2021 19:16:57 +0200 Subject: [PATCH] inputmethod: Make sure to test AutoCompletion We were doing AutoCapitalization twice, I imagine it was a copy&paste situation. --- src/wayland/inputmethod_v1_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/inputmethod_v1_interface.cpp b/src/wayland/inputmethod_v1_interface.cpp index 715b9ed3e2..4d589e1921 100644 --- a/src/wayland/inputmethod_v1_interface.cpp +++ b/src/wayland/inputmethod_v1_interface.cpp @@ -162,8 +162,8 @@ void InputMethodContextV1Interface::sendContentType(TextInputContentHints hint, if (hint.testFlag(TextInputContentHint::AutoCorrection)) { contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_auto_correction; } - if (hint.testFlag(TextInputContentHint::AutoCapitalization)) { - contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_auto_capitalization; + if (hint.testFlag(TextInputContentHint::AutoCompletion)) { + contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_auto_completion; } if (hint.testFlag(TextInputContentHint::LowerCase)) { contentHint |= QtWaylandServer::zwp_text_input_v1::content_hint_lowercase;