mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix SSH Add/Remove Key Shortcut on macOS
* Fixes #5378 * Add Key to SSH Agent is Ctrl + H on all platforms * Remove Key from SSH Agent is Ctrl + Shift + H on all platforms
This commit is contained in:
parent
8424acda4d
commit
a55bb39f20
@ -258,8 +258,15 @@ MainWindow::MainWindow()
|
||||
m_ui->actionEntryAutoType->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_V);
|
||||
m_ui->actionEntryOpenUrl->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_U);
|
||||
m_ui->actionEntryCopyURL->setShortcut(Qt::CTRL + Qt::Key_U);
|
||||
m_ui->actionEntryAddToAgent->setShortcut(Qt::CTRL + Qt::Key_H);
|
||||
m_ui->actionEntryRemoveFromAgent->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_H);
|
||||
|
||||
// Prevent conflicts with global Mac shortcuts (force Control on all platforms)
|
||||
#ifdef Q_OS_MAC
|
||||
auto modifier = Qt::META;
|
||||
#else
|
||||
auto modifier = Qt::CTRL;
|
||||
#endif
|
||||
m_ui->actionEntryAddToAgent->setShortcut(modifier + Qt::Key_H);
|
||||
m_ui->actionEntryRemoveFromAgent->setShortcut(modifier + Qt::SHIFT + Qt::Key_H);
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||
// Qt 5.10 introduced a new "feature" to hide shortcuts in context menus
|
||||
|
Loading…
Reference in New Issue
Block a user