nedit-ng icon indicating copy to clipboard operation
nedit-ng copied to clipboard

Ambiguous key sequences (precedence problem?)

Open markmr opened this issue 5 years ago • 1 comments

Hello, I have created a small macro to do some regular task (remove trailing blanks at line ends) and assigned it to "Alt+s". (This example is for demonstration purposes. Of course you may ask, why not take another key sequence...)

ScreenShot4a

  1. Pressing Alt+s does not invoke my macro but highlights the "Search" menu. Seems this is hardwired somewhere.

ScreenShot5

  1. Pressing Alt+s again (Esc between) results in a error message as shown in picture 3.

ScreenShot6 (For me this message sounds more as a desktop configuration error, not as a application error. But this is not the problem here.)

  1. Pressing Alt+s again (Esc between) hightlights the "Search" menu as in 1. And so on and on ....

Markus

markmr avatar May 28 '19 17:05 markmr

Yes, at the moment the shortcuts are indeed hardcoded in the UI. (I may already have an issue for it, not sure).

Basically I am a little unsure how to best handle things like shift shortcuts and user configurable shortcuts. Do I let users make shift versions have nothing to do with non-shift versions? If so, how do I decided when to display the "[shift]" in the menu? Etc...

But rest assured, I am thinking on this!

eteran avatar May 28 '19 20:05 eteran