author | Andrea Scarpino
<andrea@archlinux.org> 2014-10-24 18:21:19 UTC |
committer | Andrea Scarpino
<andrea@archlinux.org> 2014-10-24 18:21:19 UTC |
parent | 5267a68ead9a286872f61d7eac2d5a5f6f678dfd |
PKGBUILD | +8 | -3 |
fix-shortcuts.patch | +24 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 04fcb1a..fea3255 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ pkgname=khotkeys pkgver=5.1.0.1 -pkgrel=1 +pkgrel=2 pkgdesc='KHotKeys' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kde/workspace/khotkeys' @@ -11,11 +11,16 @@ license=('LGPL') depends=('plasma-workspace') makedepends=('extra-cmake-modules' 'kdoctools' 'python') conflicts=('kdebase-workspace') -source=("http://download.kde.org/stable/plasma/5.1.0/$pkgname-$pkgver.tar.xz") -md5sums=('50123581b85df285bd2ea5d7f722e7d0') +source=("http://download.kde.org/stable/plasma/5.1.0/$pkgname-$pkgver.tar.xz" + 'fix-shortcuts.patch') +md5sums=('50123581b85df285bd2ea5d7f722e7d0' + 'db701291f62d72780ec0cfd6c18635c6') prepare() { mkdir -p build + + cd $pkgname-5.1.0 + patch -p1 -i "${srcdir}"/fix-shortcuts.patch } build() { diff --git a/fix-shortcuts.patch b/fix-shortcuts.patch new file mode 100644 index 0000000..c35338e --- /dev/null +++ b/fix-shortcuts.patch @@ -0,0 +1,24 @@ +commit e1faf20d79d63f45afd5fcdafdecc4cb59aaaf2e +Author: David Edmundson <kde@davidedmundson.co.uk> +Date: Fri Oct 24 12:44:11 2014 +0200 + + When loading the configuration set active shortcut not the default shortcut + + Otherwise hotkeys don't work + + BUG: 337230 + FIXED-IN: 5.1.1 + +diff --git a/libkhotkeysprivate/shortcuts_handler.cpp b/libkhotkeysprivate/shortcuts_handler.cpp +index 54aaf7c..e6c9b47 100644 +--- a/libkhotkeysprivate/shortcuts_handler.cpp ++++ b/libkhotkeysprivate/shortcuts_handler.cpp +@@ -89,7 +89,7 @@ QAction *ShortcutsHandler::addAction( + newAction->setProperty("isConfigurationAction", QVariant(true)); + } + newAction->setText(text); +- KGlobalAccel::self()->setDefaultShortcut(newAction, QList<QKeySequence>() << shortcut.primary()); ++ KGlobalAccel::self()->setShortcut(newAction, QList<QKeySequence>() << shortcut.primary()); + // Enable global shortcut. If that fails there is no sense in proceeding + if (!KGlobalAccel::self()->hasShortcut(newAction)) + {