diff --git a/share/translations/keepassxc_en.ts b/share/translations/keepassxc_en.ts index 301d888ff..f20b60b7b 100644 --- a/share/translations/keepassxc_en.ts +++ b/share/translations/keepassxc_en.ts @@ -5631,10 +5631,6 @@ Are you sure you want to continue with this file? &Tools - - View - - Theme @@ -6300,6 +6296,10 @@ Expect some bugs and minor issues, this version is meant for testing purposes.E&xpire Entry… + + &View + + Clear SSH Agent diff --git a/src/gui/MainWindow.ui b/src/gui/MainWindow.ui index 283bfd999..798728c58 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 8fa8f64bb..fca1bc923 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 @@ -4694,7 +4695,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;