How to assign a key code to a local layout
Tobias Hilbricht
hilbricht at linopus.de
Sun Aug 8 17:48:21 UTC 2021
Am Sonntag, den 04.07.2021, 11:53 -0400 schrieb Richard Kimberly Heck:
> On 7/4/21 9:50 AM, Tobias Hilbricht wrote:
> > Dear readers of this list,
> >
> > I created a local layout (Document -> Settings -> Local layout)
> > which I
> > can invoke via the menu (Insert -> User defined insert -> Local
> > insert)
> > and which works as expected.
> > How can I assign a key code to this local layout?
>
> Probably "flex-insert INSETNAME" is what you want. Just assign that
> command to a key combination.
>
> Riki
>
>
>
Just in case somebody comes across this thread in quest of an answer to
the question how to make the assigned key code appear together with the
entry in the menu - here something I found out accidentally and which
I did not find documented:
If I type
flex-insert "mycustominsert"
- note the quotation marks - and assign a key code, then the key code
appears in the menu Insert -> Custom insert -> mycustominsert.
If I omit the quotation marks and type
flex-insert mycustominsert
and assign a key code, then the menu entry appears without the key
code.
This is with LyX 2.3.6.1
Yours
Tobias
More information about the lyx-users
mailing list