<?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[shortcuts issue]]></title><description><![CDATA[<p>Hi, I just got a new macbook pro (apple silicon M1, Big Sur 11.2.3), pd runs just fine, but I have the following issue : when I use shortcuts to create objects, messages, number boxes, whatever, I always have two instead of one, connected. This is quite annoying... Any ideas?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 13:22:24 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13466.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 May 2021 13:42:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to shortcuts issue on Mon, 24 May 2021 13:42:53 GMT]]></title><description><![CDATA[<p>Hi, I just got a new macbook pro (apple silicon M1, Big Sur 11.2.3), pd runs just fine, but I have the following issue : when I use shortcuts to create objects, messages, number boxes, whatever, I always have two instead of one, connected. This is quite annoying... Any ideas?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue</guid><dc:creator><![CDATA[LucienR]]></dc:creator><pubDate>Mon, 24 May 2021 13:42:53 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Mon, 24 May 2021 19:19:38 GMT]]></title><description><![CDATA[<p>I have the same problem...<br />
You might use a french or german keyboard maybe?</p>
<p>The problem is that numeric keys are mapped to Command + Shift + digit key in such systems.<br />
I finally ended by modifying some line of my pd_binding.tcl file long time ago to make them match my local keyboard.</p>
<p>For exemple (for french keyboard) for object box &quot;CMD+1&quot;, I use &quot;CMD + &amp;&quot;:<br />
<code>bind all &lt;$::modifier-ampersand&gt; {menu_send_float %W obj 0}</code><br />
For CMD+2, I use &quot;CMD + é&quot;:<br />
<code>bind all &lt;$::modifier-eacute&gt; {menu_send_float %W msg 0}</code></p>
<p>This way I don't need to press 3 keys (CM + SHIFT + numeric) and only 2 keys like in us keyboard (CMD + &amp;) and it removes the double box.<br />
But I might be wrong?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/2</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Mon, 24 May 2021 19:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Mon, 24 May 2021 20:05:59 GMT]]></title><description><![CDATA[<p>Yes you're right, french keyboard here. I don't know how to do this modification, I guess it implies to compile pd from source code, right? Never done that before...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/3</guid><dc:creator><![CDATA[LucienR]]></dc:creator><pubDate>Mon, 24 May 2021 20:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Tue, 25 May 2021 07:34:34 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lucienr">@LucienR</a> you don't have to compile from source, you just have to put tcl commands in a *-plugin.tcl file<br />
you can also unbind the old commands using an empty brace I think:</p>
<pre><code>bind all &lt;$::modifier-Key-1&gt; {
}
</code></pre>
<p>edit: I just learned you can also use #:</p>
<pre><code>bind all &lt;$::modifier-Key-1&gt; {#}</code></pre>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/4</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Tue, 25 May 2021 07:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Wed, 26 May 2021 20:38:32 GMT]]></title><description><![CDATA[<p>Sorry guys i feel a bit stupid, but this is mumbo jumbo to me. I have no clue about what tcl commands are, nor commands in general to be honest...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/5</guid><dc:creator><![CDATA[LucienR]]></dc:creator><pubDate>Wed, 26 May 2021 20:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Thu, 27 May 2021 06:38:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lucienr">@LucienR</a> A plugin file is a file found by Pd (if it is in one of the Pd search paths) that modifies the tcl/tk commands as Pd starts up.<br />
The Wish app (wish86.exe in windows) is the app that Pd calls as it starts and is basically the Pd terminal window.  It runs the tcl/tk commands that tell the OS how to create the Pd windows..... the GUI's...... and communicates with the OS when Pd asks for such things.</p>
<p>A plugin file must be named......... something-plugin.tcl</p>
<p>So create a simple text file (it must contain no formatting information) and paste the code from <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/seb-harmonik-ar">@seb-harmonik.ar</a> into it and save it as eg ...... keyboardmod-plugin.tcl<br />
Put it in the Pd/bin folder and restart Pd and hopefully it will solve the problem.</p>
<p>Lots more can be done with plugin files...... search the forum for useful ones.<br />
To stop it taking effect delete it or move it into a folder that is not in a Pd path....... and then restart Pd.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/6</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 27 May 2021 06:38:05 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Thu, 27 May 2021 18:21:07 GMT]]></title><description><![CDATA[<p>Thanks David. I tried, and I have this message when I start PD :</p>
<hr />
<p>UNHANDLED ERROR: invalid command name &quot;<br />
tf1nsinsicpg1252cocoartf2578<br />
cocoatextscaling0cocoaplatform0{onttbl0moderncharset0 Courier;}<br />
{colortbl;<br />
ed255green255lue255;<br />
ed0green0lue0;}<br />
{*expandedcolortbl;;cssrgbc0c0c0;}<br />
paperw11900paperh16840margl1440margr1440ieww11520iewh8400iewkind0<br />
deftab720<br />
pardpardeftab720partightenfactor0</p>
<p>0s24 cf2 expnd0expndtw0kerning0<br />
outl0strokewidth0 strokec2 bind all &lt;$::modifier-ampersand&gt; {menu_send_float %W obj 0} pardpardeftab720partightenfactor0<br />
cf2 bind all &lt;$::modifier-eacute&gt; {menu_send_float %W msg 0}&quot;<br />
while executing<br />
&quot;{<br />
tf1nsinsicpg1252cocoartf2578<br />
cocoatextscaling0cocoaplatform0{onttbl0moderncharset0 Courier;}<br />
{colortbl;<br />
ed255green255lue255;<br />
e...&quot;<br />
(&quot;uplevel&quot; body line 1)<br />
invoked from within<br />
&quot;uplevel #0 $tclcode&quot;<br />
FAILED TO LOAD /Users/lucienrapilly/Documents/Pd/bin/keyboardmod-plugin.tcl</p>
<hr />
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/7</guid><dc:creator><![CDATA[LucienR]]></dc:creator><pubDate>Thu, 27 May 2021 18:21:07 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Thu, 27 May 2021 21:12:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lucienr">@LucienR</a> Sorry.... I hadn't read the whole thread and I don't use shortcuts or a French keyboard so..... ?</p>
<p>The <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60Hz</a> examples are good but I think he left out the &quot;Key&quot; after $::modifier (I could be wrong....... it could be a different OS?).<br />
The bind command picks up the key press from the OS ......a combination in this case .........<br />
The variable $::modifier-Key is defined somewhere (I can't remember where or it could be in the wish app itself) as the control key.</p>
<p>And {menu_send_float %W ...... puts something into the patch window....... determined by the next bit..... obj 0} ..... which means an empty object box stuck to the cursor.</p>
<p>pd/tcl/pd_bindings.tcl contains the global bindings in the routine..... proc ::pd_bindings::global_bindings .........at line 48</p>
<p>So what you are trying to do is use some other combination &quot;control&quot;+&quot;?&quot; to do the same actions and avoid the number keys that require the shift key as well.</p>
<p>Changing the keyboard map is not an option as that would create havoc when you type something.<br />
A plugin file is good because although you could modify the pd_bindings.tcl file you would have to do so again every time you update Pd.</p>
<p>You could copy those global bindings (that are causing problems) into your plugin file and replace every key combination that is causing problems with one of your choice.<br />
Here they are in a windows distribution in case you cannot open the file.......</p>
<pre><code>    bind_capslock all $::modifier-Key a {menu_send %W selectall}
    bind_capslock all $::modifier-Key b {menu_helpbrowser}
    bind_capslock all $::modifier-Key c {menu_send %W copy}
    bind_capslock all $::modifier-Key d {menu_send %W duplicate}
    bind_capslock all $::modifier-Key e {menu_toggle_editmode}
    bind_capslock all $::modifier-Key f {menu_find_dialog}
    bind_capslock all $::modifier-Key g {menu_send %W findagain}
    bind_capslock all $::modifier-Key k {menu_send %W connect_selection}
    bind_capslock all $::modifier-Key n {menu_new}
    bind_capslock all $::modifier-Key o {menu_open}
    bind_capslock all $::modifier-Key p {menu_print $::focused_window}
    bind_capslock all $::modifier-Key r {menu_raise_pdwindow}
    bind_capslock all $::modifier-Key s {menu_send %W menusave}
    bind_capslock all $::modifier-Key t {menu_send %W triggerize}
    bind_capslock all $::modifier-Key v {menu_send %W paste}
    bind_capslock all $::modifier-Key w {::pd_bindings::window_close %W}
    bind_capslock all $::modifier-Key x {menu_send %W cut}
    bind_capslock all $::modifier-Key z {menu_undo}
    bind all &lt;$::modifier-Key-1&gt;        {menu_send_float %W obj 0}
    bind all &lt;$::modifier-Key-2&gt;        {menu_send_float %W msg 0}
    bind all &lt;$::modifier-Key-3&gt;        {menu_send_float %W floatatom 0}
    bind all &lt;$::modifier-Key-4&gt;        {menu_send_float %W symbolatom 0}
    bind all &lt;$::modifier-Key-5&gt;        {menu_send_float %W text 0}
    bind all &lt;$::modifier-Key-slash&gt;    {pdsend &quot;pd dsp 1&quot;}
    bind all &lt;$::modifier-Key-period&gt;   {pdsend &quot;pd dsp 0&quot;}
</code></pre>
<p>You probably only need to deal with keys 1 to 5.<br />
tcl is the guts of much of Pd's comms with the OS.<br />
Here is a plugin that adds arrows to the ends of cords in edit mode.... and could wet your appetite......<br />
<a href="/uploads/files/1622146719344-cordarrows-plugin.tcl">cordarrows-plugin.tcl</a><br />
It uses bind..... but to bind to an event rather than a key press...... in this case the window going to editmode.<br />
<em>There is some commented rubbish (of mine) in there as well that is best ignored</em></p>
<p>P.S&gt;&gt;&gt;.... you could try these... it might work...... maybe...?<br />
AND if it does you can still use the same shortcuts as you are used to.<br />
The existing tcl code can be negated with unbind.</p>
<pre><code>bind all &lt;$::modifier-Shift-Key-1&gt;        {menu_send_float %W obj 0}
bind all &lt;$::modifier-Shift-Key-2&gt;        {menu_send_float %W msg 0}
bind all &lt;$::modifier-Shift-Key-3&gt;        {menu_send_float %W floatatom 0}
bind all &lt;$::modifier-Shift-Key-4&gt;        {menu_send_float %W symbolatom 0}
bind all &lt;$::modifier-Shift-Key-5&gt;        {menu_send_float %W text 0}
</code></pre>
<p>Here it is as a plugin (with unbind done).......<a href="/uploads/files/1622149794074-stortcutmod-plugin.tcl">stortcutmod-plugin.tcl</a><br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/8</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 27 May 2021 21:12:12 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Thu, 27 May 2021 21:37:12 GMT]]></title><description><![CDATA[<h2>Thank you so much <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a>.  For some reason your stortcutmod-plugin.tcl file doesn't work with me,</h2>
<p>UNHANDLED ERROR: invalid command name &quot;unbind&quot;<br />
while executing<br />
&quot;unbind all &lt;$::modifier-Key-1&gt;        {menu_send_float %W obj 0}&quot;<br />
(&quot;uplevel&quot; body line 12)<br />
invoked from within<br />
&quot;uplevel #0 $tclcode&quot;<br />
FAILED TO LOAD /Users/lucienrapilly/Documents/Pd/bin/1622149794074-stortcutmod-plugin.tcl</p>
<hr />
<p>But I did another tcl file with bind commands, in order to use &amp; é &quot; ' ( instead of 1 2 3 4 5, so no need of shift anymore, And it works! Thanks for your explanation, it was a real pain in the ass to patch without shortcuts!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/9</guid><dc:creator><![CDATA[LucienR]]></dc:creator><pubDate>Thu, 27 May 2021 21:37:12 GMT</pubDate></item><item><title><![CDATA[Reply to shortcuts issue on Fri, 28 May 2021 06:48:51 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lucienr">@LucienR</a> That's great.  I try to explain rather than just giving a solution so I am pleased that it helped.<br />
It looks like I should have set the plugin to unbind within the procedure  proc ::pd_bindings::global_bindings<br />
so something like......<br />
proc ::pd_bindings::global_bindings::unbind all &lt;$::modifier-Key-1&gt;</p>
<p>But I don't know..... just stabbing in the dark.<br />
I am still struggling with tcl although slightly better at it than I was before I knew it existed...!<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13466/shortcuts-issue/10</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 28 May 2021 06:48:51 GMT</pubDate></item></channel></rss>