Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.5.3
-
None
Description
While holding Ctrl, most keys won't insert text into a text input (like QLineEdit or QTextEdit). However, the following list of keys is found to ignore whether Ctrl is pressed on X11:
!#$%&*(),.<>+?'":;
even though the following list is ignored while Ctrl is pressed, just like all alphanumeric characters:
@^_{}[]/|~`
Comparing to other toolkits, the behaviour of Java, Mozilla XUL, GTK and Windows (tested Notepad) seems to be to consistently ignore text input while Ctrl is held. Not ignoring the text is problematic when for example a shortcut is assigned to Ctrl+. (or any of these keys), cause then when the shortcut is disabled for some reason, the key isn't eaten and will suddenly insert the text instead.
The issue exists at least for Qt X11 as well as Qt on Windows, though current behaviour isn't 100% the same.
Attachments
Issue Links
- relates to
-
QTBUG-36281 QKeyEvent regression in Qt5
- Closed
- replaces
-
QTCREATORBUG-2061 Block Alt+5 short cut.
- Closed