You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plasma-desktop/do_not_reset_shortcut_for_c...

28 lines
1.1 KiB

From d5d809aa349a72a4c6fa7c031c4cfe6938ea3eaa Mon Sep 17 00:00:00 2001
From: Ivan Romanov <drizt@land.ru>
Date: Sun, 5 Jul 2015 00:46:16 +0500
Subject: [PATCH] keyboard: do not reset shortcut for changing layout
With KGlobalAccel::NoAutoloading after restarting plasma
Ctrl-Alt-K always is set to 'Switch to Next Keyboard Layout'
---
kcms/keyboard/bindings.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kcms/keyboard/bindings.cpp b/kcms/keyboard/bindings.cpp
index a11941f..968721f 100644
--- a/kcms/keyboard/bindings.cpp
+++ b/kcms/keyboard/bindings.cpp
@@ -42,7 +42,7 @@ KeyboardLayoutActionCollection::KeyboardLayoutActionCollection(QObject* parent,
toggleAction->setText( i18n(actionName) );
KGlobalAccel::self()->setShortcut(toggleAction,
QList<QKeySequence>() << QKeySequence(Qt::ALT+Qt::CTRL+Qt::Key_K),
- KGlobalAccel::NoAutoloading);
+ KGlobalAccel::Autoloading);
if( configAction ) {
toggleAction->setProperty("isConfigurationAction", true);
}
--
2.4.3