mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 15:15:51 +03:00
[GH-ISSUE #1250] [Bug] Can't set shortcut with window button #922
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#922
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheMikeyRoss on GitHub (Nov 14, 2023).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1250
Originally assigned to: @NickeManarin on GitHub.
Look at this PR https://github.com/NickeManarin/ScreenToGif/pull/955
It seems to work but without the window button.
I'm trying to set
win + shift + gas a shortcut but I cant put more than 2 keys (when a window button is part of the combination). My version is the latest2.39@pawlos commented on GitHub (Nov 20, 2023):
@TheMikeyRoss As far as I checked, in the current code,
Windowskey is not treated as a modifier (similar to ctrl, alt or shift) but as a regular key (also I can see .NET doesn't return it in modifiers collection).So you can have shift+windows in the same way as shift+g but you can't have win+shift+g. I can also see that win, key is also partially excluded by the property
AllowAllKeysthat is set to false for the shortcut controls.I think that the check and the comment in the lines
https://github.com/NickeManarin/ScreenToGif/blob/master/ScreenToGif/Controls/KeyBox.cs#L286C1-L287C76
are invalid (stating and treating Windows as a modifier) as in this particular case
IsWindowsDownwon't be true. This is the part of the code whereAllowAllKeys = false(else for https://github.com/NickeManarin/ScreenToGif/blob/master/ScreenToGif/Controls/KeyBox.cs#L248) and thus this didn't happengithub.com/NickeManarin/ScreenToGif@ccd9b0d49b/ScreenToGif/Controls/KeyBox.cs (L234C8-L235C90)soIsWindowsDownwill have the default value.Additionally many of the
winshortcuts are used in the windows itself and that might be causing the issue.Maybe with some major rewrite (or in V3) it will be possible to cover such case. Again, this is just my few thought looking at my aforementioned PR #955 and the code.