Keepassxc: Switch between open databases

Created on 30 May 2018  路  14Comments  路  Source: keepassxreboot/keepassxc

Expected Behavior

Allow easier switches between open databases.

Current Behavior

Is not a feature.

Possible Solution

Add the feature.

Context

Having open multiple databases (Tabs) in one keepassxc instance is nice, but it would be better if you would allow better switching through the open databases.

On Mac the default hotkey is CMD+1...0, which switches you to open tabs in the current program (which is in focus)

Debug Info

KeePassXC - Version 2.3.3
Revision: 0a155d8

Libraries:

  • Qt 5.9.3
  • libgcrypt 1.8.2

Operating system: macOS High Sierra (10.13)
CPU architecture: x86_64
Kernel: darwin 17.5.0

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • Legacy Browser Integration (KeePassHTTP)
  • SSH Agent
  • YubiKey

All 14 comments

CTRL+TAB?

Does that work on Windows? On Mac it doesnt.

CTRL+TAB works on other programs (such as Finder).

For some reason CTRL+TAB has never worked on macOS.

it would be nice to have Ctrl+PgUp and Ctrl+PgDn implemented like most browsers, terminal emulators and others tools have. I didn鈥檛 know Ctrl+Tab was a thing but the other two keyboard shortcuts seem intuitive to me.

This is nothing new, in fact we don't control that behavior at all. Qt handles the shortcut to switch tabs within the tab widget that we use.

src: https://stackoverflow.com/a/45387865

void MainWindow::bootStrap()
{
    // create shortcut
    QShortcut *shortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this);

    // connect its 'activated' signal to your function 'foo'
    QObject::connect(shortcut,    &QShortcut::activated,
                     this,        &MainWindow::foo);
}

// somewhere in the code, define the function 'foo'
void MainWindow::foo()
{
    qDebug() << "Ctrl+Q pressed.";
}

Maybe intercept CTRL+TAB (and CTRL+SHIFT+TAB) and set the focus manually?

Actually it's Qt::Key_Meta in macOS instead of Qt::CTRL. But it still doesn't work combined with Qt::Key_Tab even if set as a new shortcut.

I would expect CTRL + Page Up / Page Down to switch between database tabs. This is default behavior on KeePass 2.x (Windows). I think this is a basic convention as Firefox also uses this shortcut to switch between tabs.

The issue has been closed yet I'm still unable to switch tabs on KeppPassXC 2.4.3 running on MacOS. Pressing Ctrl/Cmd + Tab/PgUp/PgDn does nothing. Am I missing something?

Just testing CMD+PGUP/PGDN on macOS 10.14 and it worked flawlessly.

Just testing CMD+PGUP/PGDN on macOS 10.14 and it worked flawlessly.

You're right, my bad.

It doesn't work for me if the focus is in the search field. I have to tab out of it and then I can use CTRL + TAB (on linux elementaryOS)

That must be a limitation of Linux keyboard shortcut handling because CTRL+TAB and CTRL+SHIFT+TAB are defined at the application level to switch tabs. Switching tabs from the search box works on Windows and macOS.

You're probably right :)

Was this page helpful?
0 / 5 - 0 ratings