Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.1
-
None
-
macOS 10.14
Description
If you create shortcuts assigned to Shift+Left (SelectPreviousChar) or Shift+Right (SelectNextChar), when a QLineEdit has the focus, you can't select characters in that QLineEdit with Shift+Left/Shift+Right, even though the QLineEdit in focus is supposed to have priority over the shortcuts.
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { setCentralWidget(new QLineEdit("Try Shift+Left/Right arrow", this)); new QShortcut(QKeySequence::MoveToPreviousChar,this); new QShortcut(QKeySequence::MoveToNextChar,this); new QShortcut(QKeySequence::SelectPreviousChar,this); new QShortcut(QKeySequence::SelectNextChar,this); }
Reproducible with Qt 6.6 and Qt 6.8