This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to disable global hotkeys on specific window?

Tags: None
(comma "," separated)
User avatar
pavel
Registered Member
Posts
134
Karma
1
OS
I use krdc for remote desktops. It is inconvenient that I cannot use some hotkeys on remote desktops: Alt+F4, Alt+Tab, because I use these shortcuts as global in my KDE environment.

Is there a way to disable some global hotkeys while some specific window is activated?


pavel, proud to be a member of KDE forums since 2008-Dec.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Yes.
Window Decoration > Advanced > Special Window Settings > Workarounds > Block Global Shortcuts.
Enable and set to "Force"


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
SeaJey
Registered Member
Posts
166
Karma
0
OS
Thankes bcooksley, this would be useful for Inkscape too.


kubuntu 10.04 AMD64 - KDE 4.4
AMD - radeonHD - M-Audio revolution 5.1
User avatar
pavel
Registered Member
Posts
134
Karma
1
OS
bcooksley wrote:Window Decoration > Advanced > Special Window Settings > Workarounds > Block Global Shortcuts.
Enable and set to "Force"


This disables all the global hotkeys. But I want to disable only several. I want to disable KDE's Alt+Tab, but I want to use virtual desktop switching hotkeys.


pavel, proud to be a member of KDE forums since 2008-Dec.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately this is not currently available at this time.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
yarikoptic
Registered Member
Posts
1
Karma
0
I am using awesome as my KDEWM... is there a way (e.g. in Configuration) to just disable ALL KDE global shortcuts (temporarily)?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The D-Bus interface for kglobalaccel (the application which operates global shortcuts for KDE) provides the following:
Code: Select all
method QStringList org.kde.KGlobalAccel.action(int key)
method QDBusRawType::aas org.kde.KGlobalAccel.allActionsForComponent(QStringList actionId)
method QDBusRawType::ai org.kde.KGlobalAccel.defaultShortcut(QStringList actionId)
method void org.kde.KGlobalAccel.doRegister(QStringList actionId)
method void org.kde.KGlobalAccel.setForeignShortcut(QStringList actionId, QDBusRawType::ai keys)
method void org.kde.KGlobalAccel.setInactive(QStringList actionId)
method QDBusRawType::ai org.kde.KGlobalAccel.setShortcut(QStringList actionId, QDBusRawType::ai keys, uint flags)
method QDBusRawType::ai org.kde.KGlobalAccel.shortcut(QStringList actionId)
method void org.kde.KGlobalAccel.unRegister(QStringList actionId)
signal void org.kde.KGlobalAccel.yourShortcutGotChanged(QStringList actionId, QDBusRawType::ai newKeys)


These may be helpful. They are present under org.kde.kglobalaccel /kglobalaccel in D-Bus.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]