-
-
Notifications
You must be signed in to change notification settings - Fork 198
Shortcuts for Actions can be made global and non-global per config #823
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
Comments
It's not a bug, it was programmed like that but I see you point. As a short therm solution we could add a checkbox that defines if it's a global shortcut or not on the action itself. Binding it to the Capture is kind of hidden and might not be obvious.
Yes, the Plasma shortcuts trigger ksnip via command line and you have to provide a delay there via flag. |
Agreed. For me that's the best solution. |
Just looking at the code, it looks like the Global Hotkey is only active when Captures are enabled, so actually the one proposal you had :/ |
It's not that way, for sure. You can try it. For instance, create an Action with Then try to use Then you uncheck |
Yes, I see it's not work but the code is there. I'm trying to figure out why it's not working. |
Nope, that was just a strangely named variable covering a different use case. I have added a checkbox, next to the shortcut which allows making a shortcut global and non-global. When you test it, have a look if the default setting for existing actions is "Global -> Enabled" |
Thank you. I'll wait the AppImage to try, because building the git is not working for me. |
What do you think about the position of the checkbox, is it understandable? |
Unfortunately I still couldn't test, AppImage is not available. |
Bummer, I've retriggered the pipeline, let's see if it works now, it needs a couple of minutes. |
Perfect! Thank you. This bug is fixed. Yes, the checkbox is suitable. Should I close this issue and the other one about 0 delay? |
Thanks for testing! |
In
Actions
, it only makes sense for the shortcut to be global ifTake capture
is checked, because every other action presumes main/Editor window to be active.Apparently, shortcuts from
Actions
inheritEnable Global HotKeys
state fromHotKeys
tab inSettings
.For instance, I'd like to use
Ctrl+C
as action toCopy image to Clipboard
+Hide Main Window
. But this breaksCtrl+C
for all applications because ksnip set the shortcut as global and there is no per-action setting about this. So I need to uncheckEnable Global HotKeys
. But then I can't use global shortcuts likePrint Screen
to capture rect area.My current workaround for this is to uncheck
Enable Global HotKeys
and don't set hotkeys likePrint Screen
in ksnip. Instead, I have set these global shortcuts through Plasma System Settings. But I just noticed that shortcuts defined that way don't follow ksnip delay, screenshot is always taken immediately (or, as you know, with implicit 200ms).The text was updated successfully, but these errors were encountered: