Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.11.2, 5.12, 5.13, 5.15.0
-
-
5647af5a485067d20bf46fc716a3f2e9603c3d50 (qt/tqtc-qtbase/6.2)
Description
As described here, it's standard on macOS for the user to be able to hold down a key on the keyboard, or long-press it, and a popover with accented characters appears, allowing the user to select the desired accented version, either with the arrow keys or by typing the appropriate number shown in the popover.
Versions of Qt prior to Qt 5.11 did not show this popover at all on macOS, but Qt 5.11 does. Unfortunately, it continues inputting the repeated character while the popover is shown.
TO REPRODUCE:
- Start a new Qt Widgets form in the Designer in Qt Creator.
- Add a QLineEdit control.
- Choose Tools > Form Editor > Preview to preview the form.
- Put the keyboard focus in the QLineEdit control.
- Press and hold the e key.
EXPECTED: The accented character popover should appear, allowing you to choose the accented character you want to input.
ACTUAL: A stream of e characters is input into the line edit, and the popover appears. If you type e.g. 3 to select the third accented character, "3" is also entered into the line edit, along with the actual accented character chosen.
There doesn't appear to be any workaround for this, e.g. to prevent the alternate characters popover from appearing.
Attachments
Issue Links
- is duplicated by
-
QTBUG-72124 Ignore auto repeat for text fields on macOS
- Closed
- relates to
-
QTBUG-50006 OSX popup accent menu does not appear when holding letter 'e'.
- Closed
-
QTBUG-68764 Holding down a key on OSX doesn't work correctly
- Closed
-
QTBUG-106219 [macOS] Typing accented/alternate characters doesn't work correctly
- Closed
-
QTBUG-121673 Characters are not input continuously when long-pressing in QLineEdit on Qt6 on macOS
- Closed
For Gerrit Dashboard: QTBUG-71394 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
364283,2 | macOS: Fix input of accented characters via input method panel | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
367362,2 | macOS: Assume input method handles key event | dev | qt/qtbase | Status: MERGED | +2 | 0 |
367436,4 | macOS: Assume input method handles key event | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |