Commit 6e3c7cdd authored by Yuya Nishihara's avatar Yuya Nishihara

Leverage QQuickMenuItem::shortcut() to get mnemonic key

parent a869fc3e
......@@ -56,7 +56,7 @@ void HackedMenu::handleKeyPress(const QKeySequence &seq)
auto *item = qobject_cast<QQuickMenuItem *>(itemAt(index));
if (!item)
continue;
if (QKeySequence::mnemonic(item->text()) == seq) {
if (item->shortcut() == seq) {
if (nextIndex < 0)
nextIndex = index;
prevIndex = index;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment