diff --git a/share/translations/keepassxc_en.ts b/share/translations/keepassxc_en.ts index d6088612b..4fcc22905 100644 --- a/share/translations/keepassxc_en.ts +++ b/share/translations/keepassxc_en.ts @@ -5807,10 +5807,6 @@ Are you sure you want to continue with this file? &Tools - - View - - Theme @@ -6460,7 +6456,7 @@ This version is not meant for production use. - Clear all identities in ssh-agent + &View @@ -6501,6 +6497,10 @@ This version is not meant for production use. + + Clear all identities in ssh-agent + + ManageDatabase diff --git a/src/gui/MainWindow.ui b/src/gui/MainWindow.ui index 79f2ab36c..a76745993 100644 --- a/src/gui/MainWindow.ui +++ b/src/gui/MainWindow.ui @@ -377,7 +377,7 @@ - View + &View diff --git a/src/gui/styles/base/BaseStyle.cpp b/src/gui/styles/base/BaseStyle.cpp index 47efdd532..7502f5931 100644 --- a/src/gui/styles/base/BaseStyle.cpp +++ b/src/gui/styles/base/BaseStyle.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -4685,7 +4686,24 @@ int BaseStyle::styleHint(StyleHint hint, case SH_WindowFrame_Mask: return 0; case SH_UnderlineShortcut: { - return false; +#if defined(Q_OS_WIN) or defined(Q_OS_LINUX) + // Only show underline shortcuts if the user focused with ALT (Win/Linux only) + auto menu = qobject_cast(widget); + if (menu) { + auto p = menu->parentWidget(); + while (p) { + auto mb = qobject_cast(p); + if (mb && mb->hasFocus()) { + return 1; + } + p = p->parentWidget(); + } + } + auto mb = qobject_cast(widget); + return (mb && mb->hasFocus()) ? 1 : 0; +#else + return 0; +#endif } case SH_Widget_Animate: return 1;