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.
This commit is contained in:
Aleix Pol
2021-05-21 20:46:37 +02:00
parent e03a468075
commit 045c1db103

View File

@@ -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);