Skip to content
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

Fixed the fullscreen keyboard shortcut #1080

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

veloman-yunkan
Copy link
Collaborator

Fixes #1067 (by fixing the bug introduced by #1068).

`Qt::Key_F11` and `QKeySequence::FullScreen` are of different enum types
(`Qt::Key` and `QKeySequence::StandardKey`, respectively) with
overlapping value ranges. Using a standard integral type (int, unsigned,
long, etc) as a common type for them results in the type information
being lost and an ensuing impossibility to take advantage of overloaded
constructors of `QKeySequence`. The simple fix is to use `QKeySequence`
as the common type of the conditional expression.
@kelson42 kelson42 force-pushed the fullscreen_keysequence_fix branch from bc70550 to 1ccfcad Compare April 12, 2024 07:26
@kelson42 kelson42 merged commit ccccc80 into main Apr 12, 2024
1 check passed
@kelson42 kelson42 deleted the fullscreen_keysequence_fix branch April 12, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REGRESSION: Fullscreen shortcut (F11) not working on WSL
2 participants