Use KModifierKeyInfo to display shortcut badges while holding Super
BUG: 401768
mvourlakos |
Latte Dock |
Use KModifierKeyInfo to display shortcut badges while holding Super
BUG: 401768
Just playing with it.
I still don't understand the GlobalShortcut class very well, correct me if I make any mistake.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
app/CMakeLists.txt | ||
---|---|---|
57 | please add the new framework to README file also |
But I guess when it supports wayland, Latte will do too.
app/globalshortcuts.cpp | ||
---|---|---|
283 | shouldnt this be valid for Key_Super_R also? |
app/globalshortcuts.cpp | ||
---|---|---|
278 | I think a lower interval may be better e.g. 500ms |
@trmdi this is ok, you can merge it and afterwards we can discuss how the Meta behavior should be enabled/disabled/adjusted...
Meta is also used for showing Application Launcher so the two functionalities could be messed up together.
any ideas?
Take note that with latest commits in Latte git version, now Latte shows also the ShortcutBadges from plasma shortcuts for applets
that would probably mean that more Latte Views should be shown if their applets have plasma shortcuts assigned
I've been thinking about the Meta behavior. Some ideas:
(Currently, if I press a shortcut to activate an item, it will show the badges -> not needed)
This patch is just a draft, so you should improve it before merging by yourself.
sounds ok
(Currently, if I press a shortcut to activate an item, it will show the badges -> not needed)
- Timeout for determining it's a holding action or not should be 1-2s
it is too low I will play with it
This patch is just a draft, so you should improve it before merging by yourself.
We will play with this with iterations and through kde bugs tracker in order to fix any issues
There is also a chance that the user will be able to enable/disable that behavior from Latte Preferences in case some users hit corner cases that break their workflows.
@trmdi can you please test latest master for global shortcuts?
features supported are the following: