"Bo Peng" <[EMAIL PROTECTED]> writes:

>> Instead of having predetermined categories, the first argument of
>> InsetInfo could be an lfun. Then InsetInfo would just invoke this lfun
>> to get the needed information. This means that the information will
>> also be available for other uses (without additional cost).
>
> But we then need to define more LFUNs, such as LFUN_SHORTCUT_NAME?

Yes, we have already a couple of these for the sake for the lyxserver.
It is just a matter of moving some code from InsetInfo to LyXFunc.

>> Not really. When telling in the UserGuide that File>Open is Ctrl+O,
>> one does not want to enumerate all possible uses. Actually you could
>> implement both "shortcut" and "shortcuts" for these two uses.
>
> Maybe an overkill because most LFUN has only one shortcuts...

I think there are two use cases. Uwe, are you reading us?

> I am not sure. This file serves as a reference for shortcuts, and
> would better not be mixed with other references.

In this case, I think it is not useful. Such a file should explain
what commands do and how to obtain it. The shortcuts for things like
Cut are already shown in the menus, after all.

JMarc

Reply via email to