From: Russell O. <ro...@uw...> - 2015-04-01 17:24:18
|
On 3/31/15 6:22 PM, Trevor Williams wrote: > All, > > I'm seeing an issue with 8.5.18 build for Mac OSX where generating a key event such as: > > pack [text .t] > event generate .t <Key-b> > > Will cause the %K (keysym) value to go to a bogus value (I consistently see the character "a" displayed). > > I have attached a sample script which demonstrates the issue. Anyone want to give it a try and confirm the issue? I tried the same script with 8.5.8 and that appears to produce the correct result. > > Thanks, > Trevor The following script works for me on MacOS 10.9.5 using tcl/tk 8.5.18 (your script did not work for me in wish because the text did not have focus): pack [text .t] button .b -text Generate -command {event generate .t <KeyPress-b>} pack .b -- Russell |