Commit acd8dd06 authored by Jan Paul Batrina's avatar Jan Paul Batrina Committed by Nate Graham

[KKeySequenceItem] Make Meta+Shift+num shortcuts work

Fixes BUG 423305
parent 29126665
......@@ -24,6 +24,8 @@
#include <KGlobalAccel/KGlobalShortcutInfo>
#include <KGlobalAccel/KGlobalAccel>
#include <kkeyserver.h>
uint qHash(const QKeySequence &seq)
{
return qHash(seq.toString());
......@@ -474,8 +476,10 @@ void KeySequenceHelper::keyPressed(int key, int modifiers)
if (key) {
if ((key == Qt::Key_Backtab) && (d->modifierKeys & Qt::SHIFT)) {
key = Qt::Key_Tab | d->modifierKeys;
} else if (KKeyServer::isShiftAsModifierAllowed(key)) {
key |= d->modifierKeys;
} else {
key |= (d->modifierKeys);
key |= (d->modifierKeys & ~Qt::SHIFT);
}
if (d->nKey == 0) {
......
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