From: Benjamin R. <Ben...@ep...> - 2003-08-11 15:36:52
|
Hi Yan, Yan Wong <yan...@un...> writes: > On Monday, August 11, 2003, at 02:35 pm, Benjamin Riefenstahl wrote: >> How about your original problem? You said: 'it should send a >> <KP_Enter> keysym, but I am just getting "??"', was that a >> misunderstanding? > > I think "??" is the textual interpretation for an undefined keysym. Yes. > I was just getting bind to return the keysym as an error using "%K", > > bind all <Key> "%K" > > pressing return gives 'Error: undefined command "Return"' > pressing enter gives 'Error: undefined command "??"' I get "Return" for both keys, same versions of Tcl and OS as you gave. Apropos versions, that's the Aqua version of Tcl, not the MacOS Classic version, right? According to the source code the Aqua Tcl has supported the keypad enter as <Return> from the beginning. > Which test program? I'm not subscribed to the lists, and the archive > seems to be broken, so I may have missed some of the conversation. Sorry, I just forwarded that message to you now. The test program also prints the keycode. If all else fails and you really need this, you should be able use the keycode to detect KP_Enter. > By the way, does the Enter key work (i.e. give the KP_Enter keysym) > in Linux and Windows? Gives <KP_Enter> on Linux, but only <Return> on Windows. I think there was an enhancement requets for Windows on that, but I don't know how far that is. benny |