<?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[How to detect ESC keypressed ?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Do you know if and how I can be notified when ESC key is pressed ?</p>
<p dir="auto">I tried <code>SCN_CHARADDED</code>, <code>SCN_MODIFIED</code>, <code>SCN_KEY</code> + some other scintilla notification codes, but none of them is invoked when ESC is pressed. I couldn’t find any <code>NPPN_*</code> notification which looks useful for that too.</p>
<p dir="auto">Any suggestion ?<br />
Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18909/how-to-detect-esc-keypressed</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 20:50:15 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18909.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Feb 2020 09:00:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to detect ESC keypressed ? on Tue, 18 Feb 2020 16:17:02 GMT]]></title><description><![CDATA[<p dir="auto">Thanks you both for your help.</p>
<p dir="auto">I followed your suggestion (low level keyboard hook) and I can now handle ESC key pressed.</p>
<p dir="auto">Best Regards</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50775</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50775</guid><dc:creator><![CDATA[morbac]]></dc:creator><pubDate>Tue, 18 Feb 2020 16:17:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to detect ESC keypressed ? on Sat, 15 Feb 2020 14:15:34 GMT]]></title><description><![CDATA[<p dir="auto">In the BetterMultiSelection plugin I’ve used SetWindowsHookEx() to hook the keyboard and catch the escape key (along with other keys) before they are sent to Notepad++.</p>
<p dir="auto">See <a href="https://github.com/dail8859/BetterMultiSelection/blob/master/src/Main.cpp" rel="nofollow ugc">https://github.com/dail8859/BetterMultiSelection/blob/master/src/Main.cpp</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/50678</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50678</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Sat, 15 Feb 2020 14:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to detect ESC keypressed ? on Fri, 14 Feb 2020 12:34:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/morbac" aria-label="Profile: morbac">@<bdi>morbac</bdi></a></p>
<p dir="auto">to quote from scintilla</p>
<p dir="auto"><em>SCN_KEY<br />
Reports all keys pressed but not consumed by Scintilla. Used on GTK because of some problems with keyboard focus and is <strong>not sent</strong> by the Windows version.</em></p>
<p dir="auto">At the moment I only see the way to either register a <a href="https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms644985(v=vs.85)" rel="nofollow ugc">low level keyboard hook</a> or hooking npps message queue in general.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50622</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50622</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 14 Feb 2020 12:34:20 GMT</pubDate></item></channel></rss>