Bug in macro shortcut keys?

**Problem: **

On a fresh install, any shortcut key mapped to a .lym file is not usable, due to the shortcut key apparently registering twice in KLayout.

Steps to reproduce the problem:

  1. Fresh install klayout-0.29.12-win64-install.exe as administrator on windows 11 enterprise
  2. Open. Press F5. Make new ruby .lym. Type "print('hello world')"
  3. Click 'Edit properties of macro' button. Type an unused keyboard shortcut at the bottom such as Ctrl+Shift+Alt+G. Save all files.
  4. Click back to the main window. Press Ctrl+Shift+Alt+G. A popup says "Keyboard shortcut is ambiguous: Ctrl+Alt+Shift+G. Targets of that shortcut are: C:/Users/username/KLayout/macros\new_macro.lym, C:/Users/username/KLayout/macros\new_macro.lym"
  5. The effect is, the .lym is never run

I have tried (to no effect):

  • Different shortcut keys
  • Remove shortcut key, save, re-enter shortcut key, save
  • Ruby and Python
  • Delete klayoutrc and regenerate a new one when software restarts
  • Uninstall and reinstall KLayout
  • I have NOT tried earlier versions of KLayout but a couple of years ago I was a KLayout user for several years and never had this problem.

Comments

  • I also searched this forum and the only post I found was this one: https://www.klayout.de/forum/discussion/1464/shortcut-is-ambigious

    However that appears to be a different problem and different solution.

  • edited March 8

    HI @davidnhutch,

    I could reproduce the problem, but only once and in some unknown configuration. After I quit KLayout and restarted, everything was working as expected on Linux. Changing the key binding or removing it did not bring back the problem. Also there was no difference if there is a fresh configuration or not.

    I have not tried Windows yet.

    Matthias

  • I tested on Windows 10 too, but wasn't able to reproduce the problem :(

    Matthias

Sign In or Register to comment.