From 045c1db1030ba7ef2e4ebcff87951e80e09a49fe Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 21 May 2021 20:46:37 +0200 Subject: [PATCH] Offer input hints for the widget We don't want input methods to insert a capital letter to start or to offer predictions as they'll be misleading. --- src/terminalDisplay/TerminalDisplay.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/terminalDisplay/TerminalDisplay.cpp b/src/terminalDisplay/TerminalDisplay.cpp index 9808d1529..ecd94add8 100644 --- a/src/terminalDisplay/TerminalDisplay.cpp +++ b/src/terminalDisplay/TerminalDisplay.cpp @@ -247,6 +247,7 @@ TerminalDisplay::TerminalDisplay(QWidget* parent) // terminal applications are not designed with Right-To-Left in mind, // so the layout is forced to Left-To-Right setLayoutDirection(Qt::LeftToRight); + setInputMethodHints(Qt::ImhNoPredictiveText | Qt::ImhNoAutoUppercase); _contentRect = QRect(_margin, _margin, 1, 1);