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

Use Alt+Tab on macOS to switch between databases #5407

Merged
merged 2 commits into from
Sep 15, 2020

Conversation

stefansundin
Copy link
Contributor

Change Ctrl+Tab (well, it was actually Cmd+Tab, but that is the macOS task switcher) shortcut to Alt+Tab. Ctrl+Tab does not work unfortunately, see https://bugreports.qt.io/browse/QTBUG-8596 and https://stackoverflow.com/questions/20694919/c-qt-osx-qtmetaqtkey-tab-shortcut-bind.

I also changed Ctrl+PageDown for consistency, but I can change that back. I can also change the variable name. I wanted to quickly create this PR with the gist of the proposed change in order to get feedback.

It appears that there is some kind of workaround that Chrome utilizes (https://bugreports.qt.io/browse/QTBUG-8596?focusedCommentId=321526&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-321526). But I have not idea if it is feasible or how to implement it.

I also noticed that KeePassXC_KeyboardShortcuts.html is not customized per platform. There should be a column per OS, or an OS-specific file should be included depending on the build.

Screenshots

N/A

Testing strategy

I was able to compile and run the application.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

…switcher) shortcut to Alt+Tab. Ctrl+Tab does not work unfortunately.
src/gui/MainWindow.cpp Show resolved Hide resolved
src/gui/MainWindow.cpp Outdated Show resolved Hide resolved
@droidmonkey droidmonkey added this to the v2.7.0 milestone Sep 15, 2020
@droidmonkey droidmonkey changed the title Update Ctrl+Tab shortcut on macOS Use Alt+Tab on macOS to switch between databases Sep 15, 2020
@droidmonkey droidmonkey merged commit 8a4a804 into keepassxreboot:develop Sep 15, 2020
@jowodo
Copy link

jowodo commented Jun 7, 2023

This is great! Thanks for the PR.
Is there a possibility to use conrtol+Tab instead of option+Tab? This would be more in line with changing tabs in browsers.

@stefansundin
Copy link
Contributor Author

@pur80a Looks like the QT bug is still unresolved, so someone can find a good hack or workaround then I don't think this can be fixed. https://bugreports.qt.io/browse/QTBUG-8596

The bug priority is "P2: Important" but I doubt anyone is actively thinking about it. You could try asking in the bug ticket if there's anything you can do to help them. :)

@jowodo
Copy link

jowodo commented Jun 7, 2023

I understand. Thanks for the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants