Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.12.5, 6.2.1, 6.5.0, 6.6
-
None
-
-
422880c9d (dev)
Description
on MacOS:
QML shortcut using StandardKeys.Copy as sequence is not activated when keyboard uses Russian (or other non-latin) layout. I guess, it also doesn't work with another StandardKey values.
Keys.onPressed or Keys.onShortcutOverride is triggered, however.
Test sample:
import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 title: qsTr("Press CMD+C (Copy shortcut)") Item { anchors.fill: parent focus: true Shortcut { sequence: StandardKey.Copy onActivated: console.log("StandardKey.Copy shortcut activated") onActivatedAmbiguously: console.log("StandardKey.Copy shortcut activated ambiguously") } Keys.onShortcutOverride: { if (event.matches(StandardKey.Copy)) { console.log("StandardKey.Copy Keys.onShortcutOverride") } } } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-118160 Shortcut for StandardKey.Paste does not work under non-English locale
-
- Closed
-
- relates to
-
QTBUG-112736 Research how shortcuts relate to keyboard layouts and localizations
-
- Open
-