| Summary: | Add custom shortcuts for post-crop actions | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | EpicTux123 <EpicTux123> |
| Component: | General | Assignee: | Noah Davis <noahadvs> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 24.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
EpicTux123
2025-02-16 15:55:54 UTC
Custom shortcuts is an interesting suggestion. Spacebar in particular may not be a good choice, unfortunately. The issue is that Spacebar is an accepted key for most focusable controls, so you may not be able to reliably use it for copying. Alt+Space or some other combination might work fine. Would it be possible to make it so only Spectacle receives keyboard input (has high-priority over other apps) when taking screenshots? This could solve the issue you presented. The issue isn't making sure Spectacle keeps the input, it's making sure Spectacle's own controls don't accept the Space key. The behavior is baked into Qt because it's standard behavior for controls like buttons. Unless by "post-crop", you mean after completing a rectangle mode crop from a global shortcut? In that case, Space would still be a bad idea because we'd have no way to know what the user wants to happen at that point. If you finish the screenshot and a text box in your browser is now focused since the browser was the last focused window before you activated Spectacle, how would we know if Space should copy or enter a space into the text box? I'm also not sure if such a thing would be possible since Wayland has a lot more restrictions than X11. By "post-crop" I mean when you finish the selection in the rectangle capture mode. When Save/Copy and edit buttons appear. Regarding the spacebar, it currently does nothing on Spectacle. I don't think it could be a issue because there's an app called Flameshot (https://github.com/flameshot-org/flameshot) that gives me the power to add the Copy (or Save) action to the Spacebar without any problems (it also has a text entry bot IIRC). (That app doesn't work too greatly under Wayland, however.) To clarify, I'm not saying to make spacebar a default shortcut. The spacebar is what I want to use personally, but what I'm asking is for the ability to use custom shortcuts, without pre-defining any new ones. |