lua-users home
lua-l archive

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


Steve,

On Mon, 28 Mar 2011, steve donovan wrote:

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.

Even so, I don't think GTK accel groups handle keychains (e.g. Alt+S, ').

We're getting off topic on the Lua list though; if you want to continue this discussion, we can do it on the textadept mailing list. I'm open to ideas.

mitchell