Use Qt::CTRL since what we want there is the modifier
This fixes the bug where kglobalaccel "eats" the | character, what was actually happening is that Qt::Key_Control + Qt::Key_F12 was producing a valit KeySquence which was Shift+\, and Shit+\ is what you use in US keymaps to make |.
This commit is contained in:
parent
fa643132bc
commit
a3c4e95bb8
@ -165,8 +165,8 @@ ShellCorona::ShellCorona(QObject *parent)
|
|||||||
dashboardAction->setCheckable(true);
|
dashboardAction->setCheckable(true);
|
||||||
dashboardAction->setIcon(QIcon::fromTheme("dashboard-show"));
|
dashboardAction->setIcon(QIcon::fromTheme("dashboard-show"));
|
||||||
dashboardAction->setData(Plasma::Types::ControlAction);
|
dashboardAction->setData(Plasma::Types::ControlAction);
|
||||||
KGlobalAccel::self()->setDefaultShortcut(dashboardAction, QList<QKeySequence>() << QKeySequence(Qt::Key_Control + Qt::Key_F12));
|
KGlobalAccel::self()->setDefaultShortcut(dashboardAction, QList<QKeySequence>() << QKeySequence(Qt::CTRL + Qt::Key_F12));
|
||||||
KGlobalAccel::self()->setShortcut(dashboardAction, QList<QKeySequence>() << QKeySequence(Qt::Key_Control + Qt::Key_F12));
|
KGlobalAccel::self()->setShortcut(dashboardAction, QList<QKeySequence>() << QKeySequence(Qt::CTRL + Qt::Key_F12));
|
||||||
|
|
||||||
|
|
||||||
checkAddPanelAction();
|
checkAddPanelAction();
|
||||||
|
Loading…
Reference in New Issue
Block a user