kdeui: add TODO for global shorcuts stealing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-27 04:06:41 +03:00
parent 87926d8e46
commit 70feecedcf

View file

@ -288,6 +288,7 @@ void KGlobalAccel::stealShortcutSystemwide(const QKeySequence &seq)
{
foreach (const KGlobalAccelStruct &shortcut, d->filter->shortcuts) {
if (shortcut.action->globalShortcut().matches(seq) != QKeySequence::NoMatch) {
// TODO: in case of partial match this can steal only the matching one
shortcut.action->setGlobalShortcut(QKeySequence());
d->remove(shortcut.action);
break;