nedit-ng
nedit-ng copied to clipboard
Ambiguous key sequences (precedence problem?)
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...)
- Pressing Alt+s does not invoke my macro but highlights the "Search" menu. Seems this is hardwired somewhere.
- Pressing Alt+s again (Esc between) results in a error message as shown in picture 3.
(For me this message sounds more as a desktop configuration error, not as a application error. But this is not the problem here.)
- Pressing Alt+s again (Esc between) hightlights the "Search" menu as in 1. And so on and on ....
Markus
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!