Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on
Windows
by Vince Darley other posts by this author
Sep 29 2003 5:34PM messages near this date
Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
|
Re: [TCLCORE] Re: TIP #158: Distinguish the two 'Enter' keys on Windows
For the record, I totally agree with and support the arguments below, and
would have no qualms with a TIP which implemented them. It would make Tk
both better and more consistent cross-platform, without sacrificing
compatibility in any meaningful way.
Vince.
On Mon, 29 Sep 2003, Benjamin Riefenstahl wrote:
> As I see it, using "Mod4" is suprising behaviour. If I wanted to use
> the keypad enter key, I would check the list of keysyms in the header,
> see <KP_Enter> and try that. Several people have lately done that and
> than asked why this doesn't work on Windows or Mac.
>
> With <KP_Enter> implemented on Windows and Mac we'd never have any
> such discussion again. With the "Mod4" proposal, we will. We'd have
> to refer programmers to some specific bit of Tk documentation that
> discusses this issue. I prefer something that is obvious to something
> that needs new documentation.
>
> The most convincing (for me) argument for the "Mod4" proposal is that
> it's more compatible with existing binds to <Return>. This is
> important on Windows, because <Return> is supposed to invoke the
> default button in Windows dialogs, and <KP_Enter> should have the same
> meaning. But <KP_Enter> is most likely not bound by some current
> Windows-only applications.
>
>
> As an alternative to "Mod4", [event generate] has been proposed. I
> like that idea.
>
> Implement <KP_Enter> and add a default binding in the init scripts
> like
>
> bind all <KP_Enter> {event generate %W <Return>}
>
> That would satisfy the compatibility requirement nicely and in a
> straight-forward way. It would still make Tk on Windows compatible
> with X11.
>
> Of course the same could be done with all (or at least most) other
> keys on the keypad.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Benjamin Riefenstahl
=?ISO-8859-1?Q?Fr=E9d=E9ric_Bonnet?=
Benjamin Riefenstahl
George Howlett
Benjamin Riefenstahl
George Howlett
Vince Darley
Joe English
Vince Darley
|