From bffa0d7909d32249110221249309297da190c5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 31 Jul 2006 15:16:07 +0000 Subject: [PATCH] setGlobalShortcut() for global shortcuts svn path=/trunk/KDE/kdebase/workspace/; revision=568236 --- kwinbindings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kwinbindings.cpp b/kwinbindings.cpp index 4f95dca783..971c1d8886 100644 --- a/kwinbindings.cpp +++ b/kwinbindings.cpp @@ -1,19 +1,19 @@ #ifndef NOSLOTS # define DEF2( name, descr, key, fnSlot ) \ a = new KAction( i18n(descr), actionCollection, name ); \ - a->setShortcut(KShortcut(key)); \ + a->setGlobalShortcut(KShortcut(key)); \ connect(a, SIGNAL(triggered(bool)), SLOT(fnSlot)) # define DEF( name, key, fnSlot ) \ a = new KAction( i18n(name), actionCollection, name ); \ - a->setShortcut(KShortcut(key)); \ + a->setGlobalShortcut(KShortcut(key)); \ connect(a, SIGNAL(triggered(bool)), SLOT(fnSlot)) #else # define DEF2( name, descr, key, fnSlot ) \ a = new KAction( i18n(descr), actionCollection, name ); \ - a->setShortcut(KShortcut(key)); + a->setGlobalShortcut(KShortcut(key)); # define DEF( name, key, fnSlot ) \ a = new KAction( i18n(name), actionCollection, name ); \ - a->setShortcut(KShortcut(key)); + a->setGlobalShortcut(KShortcut(key)); #endif // some shortcuts have Tarzan-speech like names, they need extra normal human descriptions with DEF2()