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

clean: limit QHotkeyApplication::(un)registerWrapper to Windows only #1996

Merged

Conversation

shenlebantongying
Copy link
Collaborator

@shenlebantongying shenlebantongying commented Nov 26, 2024

These stuffs serve no purpose except for Windows's nativeEventFilter.

AFAIK, it is also unnecessary for Windows too, because only one "wrapper" is ever needed. However, right now I don't have access to a Windows machine.

The introduction of nativeEventFilter, which was called as winEventFilter, in Original commit doesn't explain anything goldendict/goldendict@0b87435#diff-55edcc575deee8d79439ced3ef499d0a7369bff2be1717395fd5fab7128f5db5R204

Tested on Linux.

@shenlebantongying
Copy link
Collaborator Author

Installing hotkey interacts with the hotkeywrapper directly

void MainWindow::installHotKeys()

@shenlebantongying shenlebantongying enabled auto-merge (squash) November 26, 2024 05:50
@shenlebantongying shenlebantongying merged commit f526585 into xiaoyifang:staged Nov 26, 2024
7 checks passed
@shenlebantongying shenlebantongying deleted the clean/qhka-ureg branch November 26, 2024 05:52
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.

1 participant