<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Shortcut that starts from a StandardKey but requires an extra modifier?]]></title><description><![CDATA[<p dir="auto">The first two actions work nicely. But the last two action don't. I'm not completely sure why.</p>
<pre><code>Action {
    id: zoomInOnXAxis
    text: qsTr("Zoom In On X-Axis")
    shortcut: StandardKey.ZoomIn
    onTriggered: console.log("Zoom In On X-Axis")
}

Action {
    id: zoomOutOnXAxis
    text: qsTr("Zoom Out On X-Axis")
    shortcut: StandardKey.ZoomOut
    onTriggered: console.log("Zoom Out On X-Axis")
}

Action {
    id: zoomInOnYAxis
    text: qsTr("Zoom In On Y-Axis")
    shortcut: qsTr("Ctrl+Alt+Plus")
    onTriggered: console.log("Zoom In On Y-Axis")
}

Action {
    id: zoomOutOnYAxis
    text: qsTr("Zoom Out On Y-Axis")
    shortcut: qsTr("Ctrl+Alt+Minus")
    onTriggered: console.log("Zoom Out On Y-Axis")
}
</code></pre>
<p dir="auto">How can I get them to work? Is it perhaps possible to define a shortcut that is something along the lines of StandardKey.ZoomIn+Alt?</p>
]]></description><link>https://forum.qt.io/topic/97635/shortcut-that-starts-from-a-standardkey-but-requires-an-extra-modifier</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 15:37:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/97635.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Dec 2018 11:45:01 GMT</pubDate><ttl>60</ttl></channel></rss>