<?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[Disable ASCII Control characters shortcuts?]]></title><description><![CDATA[<p dir="auto">These are a list of shortcuts for ASCII control characters I’ve found so far. I wish to keep all of them from appearing while I’m typing. I can accidentally hit these shortcuts when I’m trying to use other shortcuts like Ctrl + Z or Ctrl + V, for example. I’m using Windows and I could find no way to remove these from the shortcut mapper.</p>
<p dir="auto">~ Shift + Esc = (ESC)<br />
~ Ctrl + E = (ENQ)<br />
~ Ctrl + R = (DC2)<br />
~ Ctrl + Pause\Break = (ETX)<br />
 ~ Ctrl + Shift + Y = (EM)<br />
~ Ctrl + Shift + W = (ETB)<br />
~ Ctrl + Shift + O = (SI)<br />
~ Ctrl + Shift + A = (SOH)<br />
~ Ctrl + Shift + D = (EOT)<br />
~ Ctrl + Shift + G = (BEL)<br />
~ Ctrl + Shift + H = (BS)<br />
~ Ctrl + Shift + Z = (SUB)<br />
~ Ctrl + Shift + X = (CAN)<br />
~ Ctrl + Shift + C = (ETX)<br />
~ Ctrl + Shift + v = (SYN)<br />
~ Ctrl + Shift + B = (STX)<br />
~ Ctrl + Shift + N = (SO)<br />
~ Ctrl + Shift + 6 + (RS)<br />
~ Ctrl + Shift + -(Dash) = (US)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11233/disable-ascii-control-characters-shortcuts</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 14:21:16 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11233.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Feb 2016 04:48:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Sun, 04 Feb 2024 20:54:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> said in <a href="/post/92621">Disable ASCII Control characters shortcuts?</a>:</p>
<blockquote>
<p dir="auto">it may well not be at all easy for Notepad++ to have an Ignore unrecognized keyboard Ctrl codes setting.</p>
</blockquote>
<p dir="auto">Actually, it should be fairly easy.<br />
And the script I linked to yesterday (and everyone since then has so far ignored) shows what would need to be done:<br />
Prevent WM_CHAR codes for the control character range from reaching Scintilla, where they are processed by putting the corresponding character in the document.</p>
<hr />
<p dir="auto">By the way, people in the future will come read this thread, so it is best to post “correct” information.</p>
<p dir="auto">This is <em>not</em> how to define a correct action tag to solve the problem; one example from above:</p>
<pre><code>&lt;Macro name="RemoveKey_Ctrl_Shift_X_CAN" Ctrl="yes" Alt="no" Shift="yes" Key="88"&gt;
    &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
&lt;/Macro&gt;
</code></pre>
<p dir="auto">The <em>correct</em> equivalent would be:</p>
<pre><code>&lt;Macro name="RemoveKey_Ctrl_Shift_X_CAN" Ctrl="yes" Alt="no" Shift="no" Key="88"&gt;
    &lt;Action type="0" message="2172" wParam="0" lParam="0" sParam="" /&gt;
&lt;/Macro&gt;
</code></pre>
<p dir="auto">Reference: <a href="https://npp-user-manual.org/docs/config-files/#macros:~:text=Attributes%20for%20the%20%3CAction%3E%20tag" rel="nofollow ugc">https://npp-user-manual.org/docs/config-files/#macros:~:text=Attributes for the &lt;Action&gt; tag</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/92622</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92622</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 04 Feb 2024 20:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Sun, 04 Feb 2024 17:30:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maximiliankohler" aria-label="Profile: MaximilianKohler">@<bdi>MaximilianKohler</bdi></a> said in <a href="/post/92617">Disable ASCII Control characters shortcuts?</a>:</p>
<blockquote>
<p dir="auto">It looks like the way to implement that would be to edit the shortcuts.xml file and paste in those lines you shared.<br />
npp-user-manual dot org/docs/macros/</p>
</blockquote>
<p dir="auto">That is correct. I have not looked at github yet to see if there is not already a feature request too add a setting <code>Ignore unrecognized keyboard Ctrl codes</code>.  I don’t know if it would be easy or hard to implement as I don’t know if the fall-through path for unrecognized keyboard codes is in Notepad++, meaning it should be easy to code, or if keystrokes are passed to Scintilla in hopes that they are recognized.</p>
<p dir="auto">My guess is that the unrecognized keystrokes go to Scintilla which then passes then on to Windows.  Applications such as Notepad++ are supposed to look for things that they care about and pass the rest on to Scintilla which looks for things it cares about and passes the rest on to Windows.  Windows’ keystroke handler will be looking for Alt-F4 and similar things and converting them into messages such as WM_QUIT to exit the application.</p>
<p dir="auto">Thus, it may well not be at all easy for Notepad++ to have an <code>Ignore unrecognized keyboard Ctrl codes</code> setting.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92621</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92621</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Sun, 04 Feb 2024 17:30:50 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Sun, 04 Feb 2024 13:14:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a>! It looks like the way to implement that would be to edit the <code>shortcuts.xml</code> file and paste in those lines you shared.<br />
<code>npp-user-manual dot org/docs/macros/</code></p>
<p dir="auto">I guess for the Scintilla method we edit the same file with a similar format, replacing the existing <code>    &lt;ScintillaKeys /&gt;</code> line.</p>
<p dir="auto">For now, I’ve just assigned basic hotkeys to the main ones I was having trouble with.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92617</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92617</guid><dc:creator><![CDATA[MaximilianKohler]]></dc:creator><pubDate>Sun, 04 Feb 2024 13:14:20 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Sun, 04 Feb 2024 11:42:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/92598">Disable ASCII Control characters shortcuts?</a>:</p>
<blockquote>
<p dir="auto">but if you mean can Notepad++ alone achieve it, the answer is No, it can’t.</p>
</blockquote>
<p dir="auto">In light of <a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> 's post, I’ll qualify mine:</p>
<p dir="auto">I sensed the recent poster was looking for a simple checkbox of the form:</p>
<ul>
<li>Disallow control character entry via typing</li>
</ul>
<p dir="auto">And, as that preference setting doesn’t exist, I said it couldn’t be done with Notepad++.</p>
<p dir="auto">Obviously, one can come up with a list of unassigned Ctrl+??? combinations and create do-nothing macros for all of them (I suppose there aren’t too many).</p>
<p dir="auto">However, I’d suggest assigning a SCI_NULL operation to them; SCI_NULL is Scintilla command id 2172.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92615</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92615</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 04 Feb 2024 11:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Sun, 04 Feb 2024 06:10:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/92598">Disable ASCII Control characters shortcuts?</a>:</p>
<blockquote>
<p dir="auto">if you mean can Notepad++ alone achieve it, the answer is No, it can’t.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: Claudia-Frank">@<bdi>Claudia-Frank</bdi></a>’s suggestion <a href="https://community.notepad-plus-plus.org/topic/11233/disable-ascii-control-characters-shortcuts/3">in 2016</a> seems to work. The following will disable nearly all of the keyboards combinations in <a class="plugin-mentions-user plugin-mentions-a" href="/user/danny-phan" aria-label="Profile: Danny-Phan">@<bdi>Danny-Phan</bdi></a>’s original list.</p>
<pre><code>    &lt;Macro name="RemoveKey_Shift_Esc_ESC" Ctrl="no" Alt="no" Shift="yes" Key="27"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_E_ENQ" Ctrl="yes" Alt="no" Shift="no" Key="69"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_R_DC2" Ctrl="yes" Alt="no" Shift="no" Key="82"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_-_US" Ctrl="yes" Alt="no" Shift="yes" Key="189"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_6_RS" Ctrl="yes" Alt="no" Shift="yes" Key="54"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_A_SOH" Ctrl="yes" Alt="no" Shift="yes" Key="65"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_C_ETX" Ctrl="yes" Alt="no" Shift="yes" Key="67"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_D_EOT" Ctrl="yes" Alt="no" Shift="yes" Key="68"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_H_BS" Ctrl="yes" Alt="no" Shift="yes" Key="72"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_N_SO" Ctrl="yes" Alt="no" Shift="yes" Key="78"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_O_SI" Ctrl="yes" Alt="no" Shift="yes" Key="79"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_Y_EM" Ctrl="yes" Alt="no" Shift="yes" Key="89"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_V_SYN" Ctrl="yes" Alt="no" Shift="yes" Key="86"&gt;
        &lt;Action type="0" message="0" wParam="0" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
</code></pre>
<p dir="auto">Some keyboard combinations from the original list are now being used by v8.6.2. If you are using an older version of Notepad++ then include these to intercept these keyboard combinations:</p>
<pre><code>    &lt;Macro name="RemoveKey_Ctrl_Shift_B_STX" Ctrl="yes" Alt="no" Shift="yes" Key="66"&gt;
        &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
    &lt;/Macro&gt;	
    &lt;Macro name="RemoveKey_Ctrl_Shift_G_BEL" Ctrl="yes" Alt="no" Shift="yes" Key="71"&gt;
        &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_W_ETB" Ctrl="yes" Alt="no" Shift="yes" Key="87"&gt;
        &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="RemoveKey_Ctrl_Shift_X_CAN" Ctrl="yes" Alt="no" Shift="yes" Key="88"&gt;
        &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
    &lt;/Macro&gt;	
    &lt;Macro name="RemoveKey_Ctrl_Shift_Z_SUB" Ctrl="yes" Alt="no" Shift="yes" Key="90"&gt;
        &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
    &lt;/Macro&gt;
</code></pre>
<p dir="auto">I could not figure out how to handle <code>Ctrl+Pause/Break</code>. The code should be</p>
<pre><code>    &lt;Macro name="RemoveKey_Ctrl_Break_ETX" Ctrl="yes" Alt="no" Shift="no" Key="19"&gt;
        &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
    &lt;/Macro&gt;
</code></pre>
<p dir="auto">but the <code>ETX</code> still shows up. I tried all eight combinations of Ctrl, Alt, Shift with key code 19 but none of them caught <code>Ctrl+Pause/Break</code>. As <code>ETX</code> shows up in the editor indicates it is getting a key code. Either it’s not code 19 or there is something else going on that’s special with Ctrl+Break.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92614</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92614</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Sun, 04 Feb 2024 06:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Sat, 03 Feb 2024 13:30:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maximiliankohler" aria-label="Profile: MaximilianKohler">@<bdi>MaximilianKohler</bdi></a></p>
<p dir="auto">Well, there are several ways to achieve it, but if you mean can Notepad++ alone achieve it, the answer is No, it can’t.</p>
<p dir="auto">The disadvantage of the LuaScript approach might be that no one has “looped” it, and every discrete key must be handled.  Perhaps I would “loop” it, if I knew Lua…</p>
<p dir="auto">Anyway, another approach where you don’t have to list every key is with a PythonScript, such as the one shown <a href="https://community.notepad-plus-plus.org/topic/25179">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92598</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92598</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 03 Feb 2024 13:30:34 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Sat, 03 Feb 2024 13:15:00 GMT]]></title><description><![CDATA[<p dir="auto">So using the luascript addon with those start-up lines <a href="https://community.notepad-plus-plus.org/topic/11233/disable-ascii-control-characters-shortcuts/5">https://community.notepad-plus-plus.org/topic/11233/disable-ascii-control-characters-shortcuts/5</a> is still the only way to do this?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92597</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92597</guid><dc:creator><![CDATA[MaximilianKohler]]></dc:creator><pubDate>Sat, 03 Feb 2024 13:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Fri, 03 Mar 2017 14:37:40 GMT]]></title><description><![CDATA[<p dir="auto">Just noting that a similar thing is discussed in this thread as well:<br />
<a href="https://notepad-plus-plus.org/community/topic/12901/shortcut-map-num-performs-function-but-also-adds/8" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/12901/shortcut-map-num-performs-function-but-also-adds/8</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/22282</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22282</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 03 Mar 2017 14:37:40 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Wed, 10 Feb 2016 19:49:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/danny-phan" aria-label="Profile: Danny-Phan">@<bdi>Danny-Phan</bdi></a></p>
<p dir="auto">if you are still interested in getting the python script code working  I assume<br />
you need to install the python script plugin by using the <a href="http://sourceforge.net/projects/npppythonscript/files/Python%20Script%201.0.8.0/PythonScript_1.0.8.0.msi/download" rel="nofollow ugc">msi</a> package.<br />
It seems that plugin manager has some serious problems with this plugin.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13918</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13918</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 10 Feb 2016 19:49:53 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Wed, 10 Feb 2016 19:47:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>,</p>
<p dir="auto">yes, of course, the assignCmdKey is an scintilla internal function only.<br />
Not sure if I get your point so.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13917</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13917</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 10 Feb 2016 19:47:01 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Mon, 08 Feb 2016 20:54:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Danny</strong> and <strong>All</strong>,</p>
<p dir="auto">Once you <strong>inhibited</strong> these shortcuts, you’re  <strong>still</strong> able to write <strong>control</strong> characters, in your text, with the classical <strong>Windows</strong> method !</p>
<ul>
<li>
<p dir="auto">Hit down the <strong>ALT</strong> key</p>
</li>
<li>
<p dir="auto">While keeping the <strong>ALT</strong> key pressed, type, on the <strong>NUMERIC</strong> keypad, the <strong>three</strong> digits, of a number between <strong>001</strong> and <strong>031</strong></p>
</li>
<li>
<p dir="auto">Release <strong>all</strong> the keys =&gt; the appropriate <strong>Control</strong> character should be inserted, at the <strong>current</strong> cursor position</p>
</li>
</ul>
<p dir="auto">For instance : Press <strong>ALT</strong>  and <strong>0</strong> , <strong>1</strong> , <strong>8</strong> would write the <strong>18th</strong> letter of the alphabet ( the letter <strong>R</strong> ) =&gt; <strong>DC2</strong></p>
<p dir="auto">So :</p>
<pre><code>ALT  +  0 0 1    =&gt;    SOH      ( A )
ALT  +  0 0 2    =&gt;    STX      ( B )
ALT  +  0 0 3    =&gt;    ETX      ( C )
ALT  +  0 0 4    =&gt;    EOT      ( D )
ALT  +  0 0 5    =&gt;    ENQ      ( E )
ALT  +  0 0 6    =&gt;    ACK      ( F )
ALT  +  0 0 7    =&gt;    BEL      ( G )
ALT  +  0 0 8    =&gt;    BS       ( H )
ALT  +  0 0 9    =&gt;    TAB      ( I )
ALT  +  0 1 0    =&gt;    LF       ( J )
ALT  +  0 1 1    =&gt;    VT       ( K )
ALT  +  0 1 2    =&gt;    FF       ( L )
ALT  +  0 1 3    =&gt;    CR       ( M )
ALT  +  0 1 4    =&gt;    SO       ( N )
ALT  +  0 1 5    =&gt;    SI       ( O )
ALT  +  0 1 6    =&gt;    DLE      ( P )
ALT  +  0 1 7    =&gt;    DC1      ( Q )
ALT  +  0 1 8    =&gt;    DC2      ( R )
ALT  +  0 1 9    =&gt;    DC3      ( S )
ALT  +  0 2 0    =&gt;    DC4      ( T )
ALT  +  0 2 1    =&gt;    NAK      ( U )
ALT  +  0 2 2    =&gt;    SYN      ( V )
ALT  +  0 2 3    =&gt;    ETB      ( W )
ALT  +  0 2 4    =&gt;    CAN      ( X )
ALT  +  0 2 5    =&gt;    EM       ( Y )
ALT  +  0 2 6    =&gt;    SUB      ( Z )
ALT  +  0 2 7    =&gt;    ESC      (   )
ALT  +  0 2 8    =&gt;    FS       (   )
ALT  +  0 2 9    =&gt;    GS       (   )
ALT  +  0 3 0    =&gt;    RS       (   )
ALT  +  0 3 1    =&gt;    US       (   )
</code></pre>
<p dir="auto">Only, the <strong>control</strong> character <strong>NULL</strong> can’t be written, with that method. Instead, you’ll use the <strong>ASCII Insertion Panel</strong> ( Menu <strong>Edit - Character Panel</strong> ! )</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13876</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13876</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 08 Feb 2016 20:54:51 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Mon, 08 Feb 2016 13:29:39 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Running <code>editor:AssignCmdKey(string.byte(‘E’), SCMOD_CTRL, SCI_NULL)</code> in the console did not change my key assignments.</p>
</blockquote>
<p dir="auto">That’s weird. It works for me. Maybe there is some other plugin or keyboard configuration that is messing with it.</p>
<p dir="auto">Thanks for those extra 3 shortcuts. They worked fine for me!</p>
<p dir="auto">Also, to fully get rid of those ASCII control codes, you should probably disable those on both “views”. So instead of using <code>editor</code> you should set the shortcut on both <code>editor1</code> and <code>editor2</code> instead; for example…</p>
<pre><code>editor1:AssignCmdKey(3, SCMOD_CTRL, SCI_NULL)
editor2:AssignCmdKey(3, SCMOD_CTRL, SCI_NULL)
</code></pre>
<p dir="auto">I believe this would also apply to the PythonScript plugin.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13869</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13869</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Mon, 08 Feb 2016 13:29:39 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Mon, 08 Feb 2016 10:18:04 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! It worked out brilliantly. This was something that always bothered me about Notepad++. I’m not too big a coder myself, and I’m definitely sure I’ll never use those control characters. Glad I finally got rid of these shortcuts.</p>
<p dir="auto">I got dail’s plugin working. I couldn’t get Claudia’s python code to work though. I downloaded Python Script 1.0.6 from the plugins manager and upon pressing Show Console, I got an Unknown Exception error message. Pressing the Show Console button again allowed me to popup the console, but I suspect the reason why the console isn’t working because of the unknown exception.</p>
<p dir="auto">Running<br />
editor:AssignCmdKey(string.byte(‘E’), SCMOD_CTRL, SCI_NULL)<br />
in the console did not change my key assignments.</p>
<p dir="auto">In addition to dail’s code, you should also add these 3 lines. I came up with this code thanks to Claudia’s previous code.<br />
&lt;pre&gt;&lt;code&gt;<br />
editor:AssignCmdKey(3, SCMOD_CTRL, SCI_NULL) – CTRL + PAUSE/BREAK<br />
editor:AssignCmdKey(7, SCMOD_SHIFT, SCI_NULL) – SHIFT + ESC<br />
editor:AssignCmdKey(189, SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL) – Ctrl + Shift + -(Dash)<br />
&lt;/pre&gt;&lt;/code&gt;</p>
<p dir="auto">On a side note, I can’t get the markdown for codeblocks to show up in a post’s preview.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13868</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13868</guid><dc:creator><![CDATA[Danny Phan]]></dc:creator><pubDate>Mon, 08 Feb 2016 10:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Fri, 05 Feb 2016 02:11:29 GMT]]></title><description><![CDATA[<p dir="auto">Of course it must be</p>
<p dir="auto"><em>After testing again, I saw that SHIFT+ESC still <em><strong>didn’t work</strong></em>, strange.</em></p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13799</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13799</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 05 Feb 2016 02:11:29 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 23:51:32 GMT]]></title><description><![CDATA[<p dir="auto">After testing again, I saw that SHIFT+ESC still worked, strange.<br />
So figured out, that</p>
<pre><code>editor.assignCmdKey(27+(1&lt;&lt;16),2172)
</code></pre>
<p dir="auto">is wrong and should be</p>
<pre><code>editor.assignCmdKey(7+(1&lt;&lt;16),2172)
</code></pre>
<p dir="auto">instead. Hmm…</p>
<p dir="auto">So the full list more user friendly</p>
<pre><code>editor.assignCmdKey(ord('E') + (KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('R') + (KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('Y') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('W') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('O') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('A') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('D') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('G') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('H') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('Z') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('X') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('C') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('V') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('B') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('N') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(ord('6') + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(189 + (KEYMOD.SHIFT + KEYMOD.CTRL &lt;&lt; 16),2172)
editor.assignCmdKey(7 + (KEYMOD.SHIFT &lt;&lt; 16),2172)
editor.assignCmdKey(3 + (KEYMOD.CTRL &lt;&lt; 16),2172)
</code></pre>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13793</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13793</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 04 Feb 2016 23:51:32 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 23:23:53 GMT]]></title><description><![CDATA[<p dir="auto">ok this should do the trick for CTRL+break</p>
<pre><code>editor.assignCmdKey(3+(KEYMOD.CTRL &lt;&lt; 16),2172)
</code></pre>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13792</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13792</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 04 Feb 2016 23:23:53 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 20:35:08 GMT]]></title><description><![CDATA[<p dir="auto">That’s the beauty of having multiple programming/scripting languages, isn’t it. ;-)<br />
Having lua as npp scripting extension can force me to learn more about it because<br />
it’s also an extension to wireshark afaik.</p>
<p dir="auto">Thank you<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13780</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13780</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 04 Feb 2016 20:35:08 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 20:29:10 GMT]]></title><description><![CDATA[<p dir="auto">Yeah I’ve always been a fan of the PythonScript plugin (even stole code from that project :)). However for alot of my uses it was over kill in terms of RAM and initialization time to make it worth it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13779</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13779</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Thu, 04 Feb 2016 20:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 20:26:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a> there is nothing to shame about, you offer a new plugin and a solution to a problem.<br />
Sounds like  a successful day to me ;-)<br />
And you remembered me about a  function AssignCmdKey which I have nearly forgotten.</p>
<p dir="auto">So a python script would look like this</p>
<pre><code>editor.assignCmdKey(ord('E')+(2&lt;&lt;16),2172)
editor.assignCmdKey(ord('R')+(2&lt;&lt;16),2172)
editor.assignCmdKey(ord('Y')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('W')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('O')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('A')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('D')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('G')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('H')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('Z')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('X')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('C')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('V')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('B')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('N')+(3&lt;&lt;16),2172)
editor.assignCmdKey(ord('6')+(3&lt;&lt;16),2172)
editor.assignCmdKey(189+(3&lt;&lt;16),2172)
editor.assignCmdKey(27+(1&lt;&lt;16),2172)

editor.assignCmdKey(19+(2&lt;&lt;16),2172)  # this seems not to work although 19 should be the key code of break key
</code></pre>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13778</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13778</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 04 Feb 2016 20:26:26 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 18:56:15 GMT]]></title><description><![CDATA[<p dir="auto">I’m going to shamelessly promote my <a href="https://notepad-plus-plus.org/community/topic/11234/new-plugin-luascript" rel="nofollow ugc">new plugin</a>. If you install the plugin and put the following code in the startup script it will get rid of most of these shortcuts.</p>
<pre><code>editor:AssignCmdKey(string.byte('E'), SCMOD_CTRL, SCI_NULL)
editor:AssignCmdKey(string.byte('R'), SCMOD_CTRL, SCI_NULL)
editor:AssignCmdKey(string.byte('E'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('Y'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('W'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('O'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('A'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('D'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('G'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('H'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('Z'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('X'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('C'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('V'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('B'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('N'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
editor:AssignCmdKey(string.byte('6'), SCMOD_CTRL + SCMOD_SHIFT, SCI_NULL)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/13774</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13774</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Thu, 04 Feb 2016 18:56:15 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 17:04:01 GMT]]></title><description><![CDATA[<p dir="auto">Well, kind of a hack, you could simply assign shortcuts to no action macro, couldn’t you?<br />
Something like</p>
<pre><code>    &lt;Macro name="RemoveControlCharSUB" Ctrl="yes" Alt="no" Shift="yes" Key="90"&gt;
        &lt;Action type="" message="" wParam="" lParam="" sParam="" /&gt;
    &lt;/Macro&gt;
</code></pre>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13773</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13773</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 04 Feb 2016 17:04:01 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 14:10:13 GMT]]></title><description><![CDATA[<p dir="auto">Couldn’t agree more. Don’t know how many times I’ve done this. Especially <code>Ctrl+Shift+Z</code>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13767</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13767</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Thu, 04 Feb 2016 14:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to Disable ASCII Control characters shortcuts? on Thu, 04 Feb 2016 12:23:06 GMT]]></title><description><![CDATA[<p dir="auto">I find something along these lines an excellent feature suggestion!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13766</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13766</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 04 Feb 2016 12:23:06 GMT</pubDate></item></channel></rss>