Ok thanks for checking.
At least we can confirm it's a system language issue, although I'm thinking it's more of a bug in Tk. Which version of TK does it display when you put the log to all?
I'm wondering if it's also related to setting the available languages in the app bundle. I'll see if I can look into it as it's pretty annoying. I ran into the same problem with earlier buggy versions of Tk < 8.5.13.
On Mar 22, 2018, at 5:53 PM, pd-list-request@lists.iem.at wrote:
From: Jack <jack@rybn.org mailto:jack@rybn.org> To: pd-list@lists.iem.at mailto:pd-list@lists.iem.at Subject: Re: [PD] Creating a GUI object on Pd 0.48.1 with keyboard shortcut create two objects on MacOSX Message-ID: <163110eb-5078-0c07-8594-da9e350e391a@rybn.org mailto:163110eb-5078-0c07-8594-da9e350e391a@rybn.org> Content-Type: text/plain; charset=utf-8
Yep, I confirm. I asked to a participant to launch Pd in english, but it doesn't solve the problem. ++
Jack
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
tk is: Tk 8.5.19 n --
Le 22/03/2018 à 18:21, Dan Wilcox a écrit :
Ok thanks for checking.
At least we can confirm it's a system language issue, although I'm thinking it's more of a bug in Tk. Which version of TK does it display when you put the log to all?
I'm wondering if it's also related to setting the available languages in the app bundle. I'll see if I can look into it as it's pretty annoying. I ran into the same problem with earlier buggy versions of Tk < 8.5.13.
On Mar 22, 2018, at 5:53 PM, pd-list-request@lists.iem.at mailto:pd-list-request@lists.iem.at wrote:
From: Jack <jack@rybn.org mailto:jack@rybn.org> To: pd-list@lists.iem.at mailto:pd-list@lists.iem.at Subject: Re: [PD] Creating a GUI object on Pd 0.48.1 with keyboard shortcut create two objects on MacOSX Message-ID: <163110eb-5078-0c07-8594-da9e350e391a@rybn.org mailto:163110eb-5078-0c07-8594-da9e350e391a@rybn.org> Content-Type: text/plain; charset=utf-8
Yep, I confirm. I asked to a participant to launch Pd in english, but it doesn't solve the problem. ++
Jack
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com robotcowboy.com http://robotcowboy.com
It is with : Tk 8.5.19 ++
Jack
Le 22/03/2018 à 18:21, Dan Wilcox a écrit :
Ok thanks for checking.
At least we can confirm it's a system language issue, although I'm thinking it's more of a bug in Tk. Which version of TK does it display when you put the log to all?
I'm wondering if it's also related to setting the available languages in the app bundle. I'll see if I can look into it as it's pretty annoying. I ran into the same problem with earlier buggy versions of Tk < 8.5.13.
On Mar 22, 2018, at 5:53 PM, pd-list-request@lists.iem.at mailto:pd-list-request@lists.iem.at wrote:
From: Jack <jack@rybn.org mailto:jack@rybn.org> To:Â pd-list@lists.iem.at mailto:pd-list@lists.iem.at Subject: Re: [PD] Creating a GUI object on Pd 0.48.1 with keyboard shortcut create two objects on MacOSX Message-ID: <163110eb-5078-0c07-8594-da9e350e391a@rybn.org mailto:163110eb-5078-0c07-8594-da9e350e391a@rybn.org> Content-Type: text/plain; charset=utf-8
Yep, I confirm. I asked to a participant to launch Pd in english, but it doesn't solve the problem. ++
Jack
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com robotcowboy.com http://robotcowboy.com
I can confirm seeing this with a French keyboard mapping and my system set to English.
On Mar 23, 2018, at 11:28 AM, Jack jack@rybn.org wrote:
It is with : Tk 8.5.19 ++
Jack
Le 22/03/2018 à 18:21, Dan Wilcox a écrit :
Ok thanks for checking.
At least we can confirm it's a system language issue, although I'm thinking it's more of a bug in Tk. Which version of TK does it display when you put the log to all?
I'm wondering if it's also related to setting the available languages in the app bundle. I'll see if I can look into it as it's pretty annoying. I ran into the same problem with earlier buggy versions of Tk < 8.5.13.
On Mar 22, 2018, at 5:53 PM, pd-list-request@lists.iem.at mailto:pd-list-request@lists.iem.at wrote:
From: Jack <jack@rybn.org mailto:jack@rybn.org> To: pd-list@lists.iem.at mailto:pd-list@lists.iem.at Subject: Re: [PD] Creating a GUI object on Pd 0.48.1 with keyboard shortcut create two objects on MacOSX Message-ID: <163110eb-5078-0c07-8594-da9e350e391a@rybn.org mailto:163110eb-5078-0c07-8594-da9e350e391a@rybn.org> Content-Type: text/plain; charset=utf-8
Yep, I confirm. I asked to a participant to launch Pd in english, but it doesn't solve the problem. ++
Jack
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
After some testing, it looks like the issue is how the Tk is handling the Shift key with the French keyboard mapping.
For example, the Bang shortcut is bound as:
bind all <$::modifier-Shift-Key-B> {menu_send %W bng} bind all <$::modifier-Shift-Key-b> {menu_send %W bng}
and the menu item:
$mymenu add command -label [_ "Bang"] -accelerator "$accelerator+Shift+B"
-command {menu_send $::focused_window bng}
With the English keyboard mapping, the $::modifier-Shift-Key-b fires and the menu item's command is ignored (expected behavior).
With the French keyboard mapping, the $::modifier-Shift-Key-B fires AND the menu item command fires. It seems as though the capital B doesn't get matched to the menu accelerator binding.
The German keyboard mapping behaves the same as the English one.
On Mar 23, 2018, at 10:29 PM, Dan Wilcox danomatika@gmail.com wrote:
I can confirm seeing this with a French keyboard mapping and my system set to English.
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
This looks like another bug with Tk on macOS.
The menu item's key binding should never actually be triggered itself but it's somehow happening with the French keyboard mapping and this interferes with the bind all shortcuts. I was able to stop this from happening when removing the "Shift" menu accelerator, but then the menu item displays the wrong short cut keys with the Shift icon.
Looks like another reason to dive into the Tk code itself as we need to fix the issues with [key] as well.
On Mar 24, 2018, at 2:01 AM, Dan Wilcox danomatika@gmail.com wrote:
After some testing, it looks like the issue is how the Tk is handling the Shift key with the French keyboard mapping.
For example, the Bang shortcut is bound as:
bind all <$::modifier-Shift-Key-B> {menu_send %W bng} bind all <$::modifier-Shift-Key-b> {menu_send %W bng}
and the menu item:
$mymenu add command -label [_ "Bang"] -accelerator "$accelerator+Shift+B"
-command {menu_send $::focused_window bng}With the English keyboard mapping, the $::modifier-Shift-Key-b fires and the menu item's command is ignored (expected behavior).
With the French keyboard mapping, the $::modifier-Shift-Key-B fires AND the menu item command fires. It seems as though the capital B doesn't get matched to the menu accelerator binding.
The German keyboard mapping behaves the same as the English one.
On Mar 23, 2018, at 10:29 PM, Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com> wrote:
I can confirm seeing this with a French keyboard mapping and my system set to English.
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
I dont know if this is related, but on my system,
Keyup object outputs its value immediately after key, when I press a key, not when I release it.
This is known: https://github.com/pure-data/pure-data/issues/213 https://github.com/pure-data/pure-data/issues/213
It's not directly related but more an issue with the TK Cocoa backend.
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
OK ! The bug seems to exist only on MacOSX and on a french Keyboard. No probleme here with Ubuntu 17.10 and a french keyboard too. ++
Jack
Le 24/03/2018 à 11:32, Dan Wilcox a écrit :
I dont know if this is related, but on my system,
Keyup object outputs  its value immediately after key, when I press a key, not when I release it.
This is known:Â https://github.com/pure-data/pure-data/issues/213
It's not directly related but more an issue with the TK Cocoa backend.Â
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com robotcowboy.com http://robotcowboy.com