From a3c4e95bb800817dd9249ce03c5423cf6db0f0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20Fiestas?= Date: Fri, 7 Mar 2014 17:42:36 +0100 Subject: [PATCH] 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 |. --- src/shell/shellcorona.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/shellcorona.cpp b/src/shell/shellcorona.cpp index 3b3535fbf..13422943e 100644 --- a/src/shell/shellcorona.cpp +++ b/src/shell/shellcorona.cpp @@ -165,8 +165,8 @@ ShellCorona::ShellCorona(QObject *parent) dashboardAction->setCheckable(true); dashboardAction->setIcon(QIcon::fromTheme("dashboard-show")); dashboardAction->setData(Plasma::Types::ControlAction); - KGlobalAccel::self()->setDefaultShortcut(dashboardAction, QList() << QKeySequence(Qt::Key_Control + Qt::Key_F12)); - KGlobalAccel::self()->setShortcut(dashboardAction, QList() << QKeySequence(Qt::Key_Control + Qt::Key_F12)); + KGlobalAccel::self()->setDefaultShortcut(dashboardAction, QList() << QKeySequence(Qt::CTRL + Qt::Key_F12)); + KGlobalAccel::self()->setShortcut(dashboardAction, QList() << QKeySequence(Qt::CTRL + Qt::Key_F12)); checkAddPanelAction();