Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1673

Inconsistent behaviour for text input while holding Ctrl (not ignoring text input for some characters)

    XMLWordPrintable

Details

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              paeglis Gatis Paeglis
              lindeije Thorbjørn Lindeijer (closed Nokia identity) (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes