Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
5.4.2
-
None
-
OS X10.10.3 using a standard US Apple keyboard on a mac mini.
Description
On OS X QLineEdit does not override the Cmd+Left, Cmd+Right shortcuts. This is because OS X sends the KeypadModifier as well as the ControlModifier when pressing those keys. The code in QWidgetLineControl::processShortcutOverrideEvent only accepts the override event if modiifers() == Qt.ControlModifier, thereby failing on OS X (the code checks for equality with the well known shortcuts which are defined as Control+Left and Control+Right).
The bug probably affects other shortcuts as well, but those were the ones I tested.
The fix is either to filter out the keypad modifier before testing for equality in that function or add the keypad modifier to the platform shortcut definitions in QKeySequence.