<?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[QML - detecting &quot;key combinations&quot;]]></title><description><![CDATA[<p dir="auto">Hello, I'm trying to detect a key combination - for example when the user presses the right arrow + enter.</p>
<p dir="auto">At the moment I've looked at the docs and seen how to do it with event modifiers but that doesn't offer the key combination that I'd like</p>
<p dir="auto">What I have at the moment:<br />
@<br />
if(event.key===Qt.Key_Return &amp;&amp; (event.modifiers &amp; Qt.ShiftModifier)){<br />
//code<br />
}@</p>
<p dir="auto">Thanks in advance for any help anyone can offer to point me in the right direction!</p>
]]></description><link>https://forum.qt.io/topic/21157/qml-detecting-key-combinations</link><generator>RSS for Node</generator><lastBuildDate>Sun, 25 Oct 2026 20:56:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/21157.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Nov 2012 12:04:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QML - detecting &quot;key combinations&quot; on Tue, 06 Nov 2012 16:05:56 GMT]]></title><description><![CDATA[<p dir="auto">Alright! Thanks a lot for your help.</p>
]]></description><link>https://forum.qt.io/post/156222</link><guid isPermaLink="true">https://forum.qt.io/post/156222</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 06 Nov 2012 16:05:56 GMT</pubDate></item><item><title><![CDATA[Reply to QML - detecting &quot;key combinations&quot; on Tue, 06 Nov 2012 15:28:09 GMT]]></title><description><![CDATA[<p dir="auto">I don't know, probably not. The issue I had was slightly different and I remember that the QKeySequence was the only way I found.</p>
]]></description><link>https://forum.qt.io/post/156221</link><guid isPermaLink="true">https://forum.qt.io/post/156221</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Tue, 06 Nov 2012 15:28:09 GMT</pubDate></item><item><title><![CDATA[Reply to QML - detecting &quot;key combinations&quot; on Tue, 06 Nov 2012 15:20:50 GMT]]></title><description><![CDATA[<p dir="auto">I'll look in to this, thank you! Is there no way to do it in QML/JS?</p>
]]></description><link>https://forum.qt.io/post/156218</link><guid isPermaLink="true">https://forum.qt.io/post/156218</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 06 Nov 2012 15:20:50 GMT</pubDate></item><item><title><![CDATA[Reply to QML - detecting &quot;key combinations&quot; on Tue, 06 Nov 2012 12:23:53 GMT]]></title><description><![CDATA[<p dir="auto">You can try moving this code to C++ and using QKeySequence class.</p>
]]></description><link>https://forum.qt.io/post/156202</link><guid isPermaLink="true">https://forum.qt.io/post/156202</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Tue, 06 Nov 2012 12:23:53 GMT</pubDate></item></channel></rss>