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

Add Ctrl+Tab shortcut to cycle databases in unlock dialog #8168

Conversation

ziegenberg
Copy link
Contributor

The main window has both Ctrl+PageUp / Ctrl+PageDown and Ctrl+Tab / Ctrl+Shift+Tab shortcuts to cycle the database tabs. When in PR #5427 the abbility to select any open database in the unlock dialog was introduced, only the Ctrl+PageUp / Ctrl+PageDown shortcuts were added. This commit adds the Ctrl+Tab / Ctrl+Shift+Tab shortcuts to the unlock diaglog to fix this inconsistent UI behaviour.

Screenshots

None.

Testing strategy

I was able to compile and run the application.

Type of change

  • ✅ New feature (change that adds functionality)

The main window has both `Ctrl+PageUp` / `Ctrl+PageDown` and
`Ctrl+Tab / Ctrl+Shift+Tab` shortcuts to cycle the database tabs. When
in PR keepassxreboot#5427 the abbility to select any open database in the unlock
dialog was introduced, only the `Ctrl+PageUp` / `Ctrl+PageDown`
shortcuts were added. This commit adds the `Ctrl+Tab / Ctrl+Shift+Tab`
shortcuts to the unlock diaglog to fix this inconsistent UI behaviour.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
@codecov-commenter
Copy link

codecov-commenter commented Jun 18, 2022

Codecov Report

Merging #8168 (f0c42b4) into develop (b86c3e6) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #8168      +/-   ##
===========================================
- Coverage    64.48%   64.46%   -0.02%     
===========================================
  Files          339      339              
  Lines        43699    43706       +7     
===========================================
- Hits         28175    28172       -3     
- Misses       15524    15534      +10     
Impacted Files Coverage Δ
src/gui/DatabaseOpenDialog.cpp 85.09% <100.00%> (+0.98%) ⬆️
...rc/fdosecrets/widgets/SettingsWidgetFdoSecrets.cpp 56.06% <0.00%> (-3.03%) ⬇️
src/fdosecrets/dbus/DBusMgr.cpp 52.20% <0.00%> (-1.47%) ⬇️
src/core/FileWatcher.cpp 86.75% <0.00%> (+1.20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b86c3e6...f0c42b4. Read the comment docs.

@droidmonkey droidmonkey added this to the v2.7.2 milestone Jun 19, 2022
@droidmonkey droidmonkey merged commit 6b05b84 into keepassxreboot:develop Jul 2, 2022
@ziegenberg ziegenberg deleted the feature/add-db-open-dialog-crtl-tab branch November 25, 2022 16:52
ziegenberg added a commit to ziegenberg/keepassxc that referenced this pull request Nov 25, 2022
When in PR keepassxreboot#8168 the abbility to cycle through the databases in the unlock
dialog was extended to include the `Ctrl+Tab / Ctrl+Shift+Tab` shortcuts,
it mixed up the direction. At the moment `Ctrl+Tab` selects the previous
database, when customarily it should select the next entry. This was my
mistake.

This commit changes the direction of cycling through databases in the
unlock dialog with `Ctrl+Tab / Ctrl+Shift+Tab` fixing my original commit.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
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