lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Mar 28, 2011 at 4:44 AM, mitchell <code@caladbolg.net> wrote:
> If I could, I would have added shortcuts to menus a long time ago. As I
> understand, GTK needs an accelerator group in order to show keybindings, but
> the dynamic nature of textadept's key commands renders such a thing useless.

Yes, having looked at the code I can see the problem. One solution is
to embed parse-able accelerator strings in the menu strings
themselves, and use that as the preferred way to change key bindings.
This of course has other implications, like messing up the
localizations, which suggests that a menu definition should consist of
three things: the caption, the accelerator, and the action.

(Nice piece of work by the way.)

steve d.