[plasmashell] [Bug 442079] Activity hotkeys are not stored properly

2021-09-07 Thread Oleg Solovyov
https://bugs.kde.org/show_bug.cgi?id=442079

--- Comment #2 from Oleg Solovyov  ---
The issue is in KGlobalAccelPrivate::intListFromShortcut:

According to QKeySequence documentation it could contain up to 4 keys.[1]

> for (const QKeySequence  : cut) {
> ret.append(sequence[0]);
> }
Hence, in this code all keys except the first one are lost.

[1] https://doc.qt.io/qt-5/qkeysequence.html#QKeySequence-2

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 442079] Activity hotkeys are not stored properly

2021-09-07 Thread Oleg Solovyov
https://bugs.kde.org/show_bug.cgi?id=442079

--- Comment #1 from Oleg Solovyov  ---
qWarning() << "scResult debug:" << activeShortcut <<
intListFromShortcut(activeShortcut) <<
shortcutFromIntList(intListFromShortcut(activeShortcut));

causes this:
scResult debug: (QKeySequence("Alt+B, Alt+F, Alt+G")) (134217794)
(QKeySequence("Alt+B"))

-- 
You are receiving this mail because:
You are watching all bug changes.