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 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users