*   This is quite natural with compound shortcut assignments. Otherwise how 
should LyX know what the user wants to do when they press Alt+I: should it 
directly open the Insert sub-menu or wait till Shift+# or some other key 
combination is pressed?



OK. So I tried with “Alt+I +” instead [one of the few symbol on my keyboard 
that does not require a shift key; I do not use a US keyboard]. Here is how 
that works:

  *   After I define the shortcut for Program Listing, doing the shortcut 
“Alt+I +” correctly inserts the program listing. The Insert sub-menu does not 
show up.
  *   If I do “Alt+I Alt+I”, that switches me back so that the Insert sub-menu 
shows up.
  *   If I next do “Alt+I +”, this again inserts the program listing.



If I open the Preferences with Shortcuts again, I notice (like before) that 
there are two “listing-insert” lines.



[cid:[email protected]]



Anyways. The same seems to happen when I do Alt+I Shift+#. (When I sent the 
question, I assumed the shortcut was broken…).



The extra “listing-insert” *without* shortcut in fat – is that for the case 
when I open the submenu and have to click on the Program Listing item?

--

Since I use the Program Listing quite a bit, it  would be nice if there was a 
default shortcut like for most of the items in the Insert menu.







-----Original Message-----
From: lyx-users <[email protected]> On Behalf Of 
[email protected]
Sent: Wednesday, July 30, 2025 4:13 PM
To: [email protected]
Subject: Re: LyX 2.4: problems with defining Keyboard Shortcut



> So I go to Tools/Preferences/Editing/Shortcuts, and find "listing-insert" in 
> the Function column. Then I double-click on this element, and type Alt+I 
> Shift+# ("#" as a reference to comment statements in Python, etc., since many 
> letters are already taken – I need something that I can remember). The result 
> is:

>

>

> OK.. this seems to work, but now Alt+I doesn’t open up the Insert sub-menu, 
> so creating my own shortcut seems to have de-activated the use of Alt+I…





This is quite natural with compound shortcut assignments. Otherwise how should 
LyX know what the user wants to do when they press Alt+I: should it directly 
open the Insert sub-menu or wait till Shift+# or some other key combination is 
pressed?



Fatihcan



--

lyx-users mailing list

[email protected]<mailto:[email protected]>

https://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to