On Wed, Jan 2, 2013 at 11:44 AM, Vin Shelton <acs(a)alumni.princeton.edu> wrote:
Byrel -
On Sun, Dec 23, 2012 at 6:29 PM, Byrel Mitchell
<byrel.mitchell(a)gmail.com> wrote:
Since there already is a top-level "t" menu (Tools), I think it's
probably clearer to bind the top-level menu to "s". This will also
show that accelerators don't have to be initial characters and can be
embedded inside strings.
Looks good!
There remains a bug with the accelerator code - even though the
accelerator for "One" is "1", I notice that the initial "O"
is
underlined.
This is documented in the lispref, so I'm not sure it quite qualifies
as a bug: "Menu accelerators are specified as part of the menubar
format using the :accelerator tag to specify a key or by placing "%_"
in the menu or menu item name prior to the letter which is to be used
as the accelerator key. The advantage of the second method is that the
menu rendering code then knows to draw an underline under that
character, which is the canonical way of indicating an accelerator key
to a user. "
But it would certainly be nice if the :accelerator tag also inserted
underlines when possible. Maybe this could be done at insertion-time?
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches