That's the menu that an app gives you when you RMB click
Fortunately, only the xschem.tcl had to be changed. Dankeschoen Stefan
- bind $topwin <KeyPress> "xschem callback %W %T %x %y %N 0 0 %s"
+ bind $topwin <KeyPress> "
+ if {{%K} eq {Escape}} { destroy .ctxmenu }
+ xschem callback %W %T %x %y %N 0 0 %s"
Nice — the file defines a custom right-click context menu using a toplevel window named .ctxmenu, created inside a procedure called context_menu.
To allow dismissing this menu with the ESC key, you can bind the Escape key to destroy .ctxmenu. Here's what to add inside the context_menu procedure after .ctxmenu is created:
No comments:
Post a Comment