Global shortcuts don't always work

Bug #223412 reported by Dustin Widmann
38
Affects Status Importance Assigned to Milestone
kdebase-workspace (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: kdebase-workspace

When I use a global shortcut they often don't work until I change the focus to something else (ie: click on the desktop or the panel or something), aren't global shortcuts supposed to global. I suppose it's not critical, but it certainly is annoying, especially seeing as I use yakuake and katapult to death.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Alt + F2 always works here.
Could we get some more information about your setup?
What version of KDE 4 do you have, and does it occur with the latest version? (4.1.1)
Are you using Compiz?

Thanks in advance.

Changed in kdebase-workspace:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
ktulu77 (ktulu-highwaytoacdc) wrote :

It seems that all the global shortcuts of KDE3 apps don't work in a KDE4 environment. The problem is that Amarok 1.4 (kde3) is the default music player in kubuntu intrepid and it is simply impossible to do play/pause/next/previous if Amarok is minimized.

I am using KDE4.1 on kubuntu intrepid x64 without compiz enabled and I can't use Amarok global shortcuts. It is an important issue for me because we can't have a working default music player on kubuntu intrepid for the moment.

Revision history for this message
willfe (willfe) wrote :

I've observed similar behavior, but maddeningly, it's *only* affecting Previous and Next. The Play/Pause, Stop, Mute, Volume Up/Down, and the little "musical note" multimedia keys on my keyboard work properly everywhere, whether Amarok has focus or not. When Amarok is focused, the Previous and Next keys also work.

When Amarok is not focused, though, Previous and Next do nothing. Play/Pause does play/pause, Stop does stop, and the "music note" key is mapped to toggling the OSD, which also works whether Amarok's focused or not.

Not sure how to fix this one. Amarok does correctly detect the keys when focused, and during configuration it easily grabs the keypresses when I set up the Global Shortcuts.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Setting status back to Triaged, since more information has been provided.
For me, it works with amarok-kde4 (Amarok 2) from the kubuntu-members PPA, as far as I've tested it (using Global Keyboard Shortcuts from the "Keyboard & Mouse" application in System Settings).

I guess this bug might get resolved, once Amarok 2 enters Jaunty and is the new default player.

Changed in kdebase-workspace:
status: Incomplete → Triaged
Revision history for this message
willfe (willfe) wrote :

Now upgraded to Amarok 2, which hasn't improved the situation. If Amarok 2 is on-screen and has focus, global shortcuts work just fine. If it is not focused, global shortcuts do not work. I have taken care to ensure it is the "Global" shortcuts that are set in the "Configure Shortcuts..." dialog.

This is in KDE 4.1.3, running Amarok 2.0.

Revision history for this message
willfe (willfe) wrote :

Gah. It's less clear-cut than this. Global shortcuts work *sometimes* even when Amarok isn't focused (I just tested it again after posting the above comment -- my tests right *before* posting the comment found global shortcuts *not* working).

Revision history for this message
Petrus Gomes (petrusgomes) wrote :

Same issue...
Clean install of kubuntu intrepid i386 and amarok 2 instead of 1.4, with instructions from kubuntu.org.
Play/Pause button works as global shortcut, but "Media Next" and "Media Previous" only work as local shortcut. If used as global, they do nothing.

Using other key combination like "Meta + U" also works as global for changing music

.kde/share/config/kglobalshortcutsrc file looks fine after changes:

[amarok]
_k_friendly_name=Amarok
decreaseVolume=,Meta+-,Diminuir Volume
increaseVolume=Meta++,Meta++,Aumentar Volume
loveTrack=Meta+L,Meta+L,Adorar Faixa Atual
mute=Meta+M,Meta+M,Mudo
next=Media Next,Meta+B,
play_pause=Media Play,Meta+C,Reproduzir/Pausar
playlist_add=Meta+A,Meta+A,Ad&icionar Arquivos...
prev=Media Previous,Meta+Z,Faixa Anterior
rate1=Meta+1,Meta+1,Avaliar a Faixa Atual: 1

Revision history for this message
komuta (komuta) wrote :

The issue is still present in jaunty. The issue impacts (at least) shortcuts created with numpad keys : https://bugs.kde.org/show_bug.cgi?id=183458. This used to work in KDE 3...

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Works now for me with KDE 4.3 + Amarok 2.1.0 on Kubuntu 9.10 w/ the latest updates.

Changed in kdebase-workspace (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.