From: Trevor W. <pha...@me...> - 2015-04-01 17:42:25
|
Russell, Your script does not show the error I am speaking of. Try my script again, this time enter a small bit if text into the widget. Notice in the standard output that the keysym matches the char. Next, click the playback button. The standard output should now show the keysym value to be 'a' while the char value is correct. Can you see this behavior occurring now? Sent from my iPod > On Apr 1, 2015, at 12:23 PM, Russell Owen <ro...@uw...> wrote: > >> 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 > > > ------------------------------------------------------------------------------ > 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 |