From: SourceForge.net <no...@so...> - 2003-03-10 19:11:24
|
Bugs item #700311, was opened at 2003-03-09 11:54 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=700311&group_id=12997 Category: MacOS X Specific Group: 8.4.2 Status: Open Resolution: None Priority: 5 Submitted By: Revar Desmera (revar) Assigned to: Jim Ingham (wolfsuit) Summary: OS X Aqua: Command-key bindings don't seem to work. Initial Comment: Bindings to <Alt-Key-n>, <Alt-Key-o>, <Alt-Key-a>, etc. (Which should match Command-N, Command-O, Command-A, etc.) don't seem to be triggering at all in my widgets under Aqua Tk. The following code demonstrates this for Command-A: entry .e pack .e bind .e <Alt-Key-a> ".e delete 0 end ; .e insert end Command-A!" ---------------------------------------------------------------------- >Comment By: Jim Ingham (wolfsuit) Date: 2003-03-10 19:22 Message: Logged In: YES user_id=169107 Humm... This code seems quite schizoprhenic... It translates Alt to Option for menu accelerators, the pure Command keypress generates Alt, but the modifier is M1 (or Command, both work). The Alt accelerator should clearly map to Option, since that is what is written on the Keyboard. Probably makes sense to have Meta map to Command... This seems a big change, however. It was sufficiently broken that I doubt anyone was using it, but still, we should float the change a bit to make sure we aren't breaking anyone else... For now, just use Command- and Option- for the modifiers, they will work fine. That is what all the tk library and demos files do. ---------------------------------------------------------------------- Comment By: Revar Desmera (revar) Date: 2003-03-10 14:16 Message: Logged In: YES user_id=6331 Well, see, the thing is I did NOT see any documentation for it. So I wrote a script to find out what the command key mapped to. When I type the command-key in the entry widget of the following script, it reports as Alt_L, the left Alt key. entry .e pack .e bind .e <Key> "after 100 { .e delete 0 end ; .e insert end %K }" ---------------------------------------------------------------------- Comment By: Jim Ingham (wolfsuit) Date: 2003-03-10 03:12 Message: Logged In: YES user_id=169107 Why do you think "Alt" should map to "Command"? If you look at a standard Apple Keyboard, the Option key has a little "alt" written above it. So in Mac Tk and AquaTk, Alt maps to Option. If there was some documentation somewhere that says Alt == Command point me to it, and I will fix the docs. But I think the behavior is right. Meta is the X11 modifier that maps to Command, which, if you think about its usage in Emacs, for instance, makes some sense... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=700311&group_id=12997 |