# HG changeset patch # User Chris Cannam # Date 1409575042 -3600 # Node ID 81e41a430b58cff53bbc0f6813546fb3f435f1d4 # Parent f747be6743ab92889ead8e57df90a6d352b56a74 Handle keyboard shortcuts with Shift modifier in the same way as those with no modifier diff -r f747be6743ab -r 81e41a430b58 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Aug 13 16:44:50 2014 +0100 +++ b/framework/MainWindowBase.cpp Mon Sep 01 13:37:22 2014 +0100 @@ -368,7 +368,14 @@ } if (hasButton) continue; QKeySequence sc = a->shortcut(); - if (sc.count() == 1 && !(sc[0] & Qt::KeyboardModifierMask)) { + + // Note that the set of "single-key shortcuts" that aren't + // working and that we need to handle here includes those + // with the Shift modifier mask as well as those with no + // modifier at all + if (sc.count() == 1 && + ((sc[0] & Qt::KeyboardModifierMask) == Qt::NoModifier || + (sc[0] & Qt::KeyboardModifierMask) == Qt::ShiftModifier)) { QShortcut *newSc = new QShortcut(sc, a->parentWidget()); QObject::connect(newSc, SIGNAL(activated()), m_menuShortcutMapper, SLOT(map()));