When we set a new keybinding (such as S-F2 for buffer-write), the
original keybinding F2 is still displayed next to 'File->Save'. Both
shortcuts work but I think it makes sense to display the latest,
user-defined one to the menu. The attached patch changes this.

I do not think that using the last makes more sense than the first. And if you do this change, all our .bind files will have to be rewritten to make sure that the bindings
are correct... And the user bind files will display nonsense.

The only solution I see is to allow the mark the main binding in the bindings file. But is strikes me as a complicated thing for little gain. How do other programs do it?

I also make this keybinding the one to display in
InsetInfo::SHORTCUT_INFO, which previously displays all shortcuts.
Displaying only one shortcut makes Help->Shortcuts looks much better
when there are more than one keybindings for a LFUN.

We should have SHORTCUT_INFO and SHORTCUTS_INFO, maybe.

The only doubt I have is that whether or not 'findBindings(func)'
returns shortcuts at the order in which they are defined. JMarc?

I thin it does.

JMarc

Reply via email to