-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicated entries in shortcuts conf #132
Comments
I agree. The method used by LXQt didn't feel "natural" to me from start but it worked fine. There are things we could learn from KDE -- at least, it could be inspiring -- but I'm afraid a backward compatible fix may not be possible in this case. |
In this special case i really don't care about backward compat - and the to some extend we can be "backward-compatible" - read a current configuration and take the first valid entry for a key - drop all others. Done 😄 Edit: and my config is now a bit over 1000 lines ... |
Yes, in addition to a new way of storing shortcuts, some code is needed to translate the old format to the new one. |
Was it inherited from razor-Qt? |
no clue, i guess so |
OK, KDE's method isn't so inspirational ;)
Int our method, shortcuts are section names. So far so good. It seems that I think If, somehow, we remove |
Another method: Use numbers as section names, put shortcuts inside sections, and add code to search for ambiguous shortcuts: either prevent them or show a warning. An example:
|
I assigned it to myself because I've dealt with shortcut ambiguity in other apps but it won't be for 0.15. If someone can make it efficient before 0.15, please do so! |
Will result in a funny sorting ... |
Sorting won't change in the GUI. |
Please see if 794c780 fixes your problem and is worth making a PR. As for |
In other words, the current code efficiently deals with ambiguity (although in a way that I don't like). |
Meh - ok, i was a longterm database guy - and if anyone had introduced any kind of not needed sequenz number i had yelled at him long and loud - the point 'ambiguity' can be simply handled by the triplet {$key, $command/action, $activation-state} - not more, not less. |
If there was only one way of doing each job, we would have only one OS and one program of each kind. Loading identical shortcuts was a problem that can be fixed by the proposed patch but showing ambiguous ones while enabling only one of them is a feature — although I may not like it. It needs those numbers after dots. Config files aren't for manual editing. Most of them can be edited but they're created by apps and can contain elements whose meanings aren't obvious to users. The presence of something like ♥ in a config file isn't a problem, let alone dots followed by numbers. |
:) |
Wasn't it there before? I don't remember. |
no, never seen a branch overview which make it possible
Really useful i think |
done |
Expected Behavior
each keyboard shortcut should be unique in config
Current Behavior
it isn't
Possible Solution
fix ti
Steps to Reproduce (for bugs)
provide the same key in /usr/share conf. etc/xdg and $HOME/.config - maybe with different numbers
Context
^^^ i really don't like it 😎
Possible related to: #125
Imho the command/key combination should be unique, i have nothing against
ctrl a and ctrl b doing the same thing - might be legit, but i don't want to see
11 ctrl a action foo
12 crtl a action foo
13 crtl a action foo
System Information
latest git
The text was updated successfully, but these errors were encountered: