I think that if you just hit the Shift key, you will get a KeyPress event where the keysym value is ??. I'll try to investigate some more. At least it sounds like the problem is not isolated to just me.
Sent from my iPod
> On Mar 3, 2015, at 4:44 AM, Kevin Walzer <kw...@co...> wrote:
>
>> On 3/3/15 12:08 AM, Trevor Williams wrote:
>> I am using 8.5.15 (though I have seen this same issue with 8.5.17). When I enter a modifier key such as Shift, Control, Alt or Command, and attempt to get the keys value using the bind %K value, instead of receiving a value like “Shift_L” and the like, I instead get the value “??”.
> Running your script, here is one example output I see for Shift A:
>
> Unmodified <KeyRelease> with <%K> equal to <A> and <%A> equal to <A>
> Unmodified <KeyRelease> with <%K> equal to <??> and <%A> equal to <{}>
>
> This doesn't seem entirely consistent with what you are reporting: note
> that the A is captured there.
>
> Regardless, this is an area I am unfamiliar with, including the use case
> for getting the key pressed with a modifier. If you want to investigate
> submitting a patch, the relevant code seems to be in tkMacOSXKeyboard.c.
>
> --Kevin
>
> --
> Kevin Walzer
> Code by Kevin/Mobile Code by Kevin
> http://www.codebykevin.com
> http://www.wtmobilesoftware.com
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Tcl-mac mailing list
> tc...@li...
> https://lists.sourceforge.net/lists/listinfo/tcl-mac
|