[kde-runtime/frameworks] kglobalaccel: Workaround for a bug that prevents | to be written

Àlex Fiestas afiestas at kde.org
Fri Mar 7 15:15:56 UTC 2014


Git commit 7352de1b593ab933adb6dbee7ccc349cbe0e89b6 by Àlex Fiestas.
Committed on 07/03/2014 at 15:12.
Pushed by afiestas into branch 'frameworks'.

Workaround for a bug that prevents | to be written

Do not get alarm, I'm trying to hunt this bug down,
but working without | is driving me crazy, and after
all we need to be able to dogfood plasma next.

CCMAIL: plasma-devel at kde.org

M  +5    -0    kglobalaccel/globalshortcutsregistry.cpp

http://commits.kde.org/kde-runtime/7352de1b593ab933adb6dbee7ccc349cbe0e89b6

diff --git a/kglobalaccel/globalshortcutsregistry.cpp b/kglobalaccel/globalshortcutsregistry.cpp
index 2c87147..db03ba7 100644
--- a/kglobalaccel/globalshortcutsregistry.cpp
+++ b/kglobalaccel/globalshortcutsregistry.cpp
@@ -314,6 +314,11 @@ bool GlobalShortcutsRegistry::registerKey(int key, GlobalShortcut *shortcut)
         return false;
         }
 
+    if (QKeySequence(key).toString() == "Shift+\\") {
+        kDebug() << "Not registering" << QKeySequence(key).toString() << "Because breaks |";
+        return false;
+    }
+
     kDebug() << "Registering key" << QKeySequence(key).toString() << "for"
              << shortcut->context()->component()->uniqueName() << ":" << shortcut->uniqueName();
 


More information about the Plasma-devel mailing list