Bug 202747

Summary: [Windows] media keys global shortcuts
Product: [Applications] amarok Reporter: Bryan Sierra - Diaz <admin>
Component: ShortcutsAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED NOT A BUG    
Severity: normal CC: admin, casper.vandonderen, yulidanroni
Priority: NOR    
Version: 2.3-GIT   
Target Milestone: ---   
Platform: unspecified   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bryan Sierra - Diaz 2009-08-06 06:28:40 UTC
Version:           2.1 (using 4.2.3 (KDE 4.2.3), MS Visual Studio 2005 SP1)
Compiler:          cl.exe
OS:                Microsoft Windows (unknown) release 5.2 (XP Professional x64 Edition)

When trying to set use the media keys of my Inpsiron 1520 as global short cuts, amarok does not accept them. They work fine for local shorcuts, but when I attempt to set them as global shortcuts, it does not work.
Comment 1 Bryan Sierra - Diaz 2009-08-06 06:34:04 UTC
I forgot to mention that setting a global shotcut using the windows key + some non-media-key key works just fine. But even trying windows key (called the "Meta key") + some-media-key did not work.
Comment 2 Lydia Pintscher 2009-08-06 09:19:39 UTC
Casper could you have a look at this please?
Comment 3 Casper van Donderen 2009-08-06 10:12:33 UTC
Could you please try assigning the shortcut to <Ctrl+Alt>+Media key. Global shortcuts in Windows have to start with Ctrl+Alt according to Microsoft.

Please update.
Comment 4 Bryan Sierra - Diaz 2009-08-06 15:28:39 UTC
Tried following key combinations for global shotcuts with no success:
<Alt> + Media Key
<Ctrl> + Media Key
<Meta> + Media Key
<Alt + Ctrl> + Media Key
<Alt + Meta> + Media Key
<Ctrl + Meta> + Media Key
<Alt + Ctrl + Meta> + Media Key
Comment 5 Bryan Sierra - Diaz 2009-08-07 00:17:52 UTC
I did successfully get the following map to work globally.
Play: Meta + x 
Next Track: Meta + c
Previous Track: to Meta + z

But I could not get the global increase volume or the global decrease volume to work. 

Even with the default mapping.
Comment 6 Casper van Donderen 2009-08-07 14:27:12 UTC
Could you let me now what your media shortcuts are? is it the volume up/down keys?

Do you have a branded keyboard with a specific driver?

I just tested with JuK, which has the volume controls mapped to Ctrl+Alt+Shift+<up/down> those work...
Comment 7 Bryan Sierra - Diaz 2009-08-07 15:24:46 UTC
Well, the ones I am trying to get to work are currently my Play,Next Track, and Previous track keys. 

As for the specfic keyboard / driver combination: It's an Inspiron 1520 Laptop.

The global shortcut for volume I attempted was <all combinations of Meta, Ctrl and alt keys> + = (for increase) and - (for decrease).
Comment 8 Casper van Donderen 2009-08-07 15:26:49 UTC
The default mapping is indeed incorrect, <Ctrl+Alt/Meta>+<plus/minus> is already a MS global shortcut. I think we cannot use those two keys for shortcuts...

for me Meta+<arrow up/down> works, can you confirm if this works for you (I run 2.2-GIT)
Comment 9 Casper van Donderen 2009-08-16 20:40:38 UTC
Nothing I can do about this now, don't have a multimedia keyboard and MS sets a lot of new Global shortcuts in Win7. This needs some discussion, preferably within whole of KDE and topic on MSDN.
Comment 10 Casper van Donderen 2009-09-06 16:41:27 UTC
I posted a topic on MSDN: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/463860a2-0b72-4df5-94c2-7be7fca0dd26

These shortcut problems are not really something we can do anything about since we cannot override the WM_KEYDOWN in a central place (it goes to the active window, and global shortcuts are for the case when the Window is not visible).

I still cannot help with the Multimedia keys...
Comment 11 Myriam Schweingruber 2009-11-16 17:24:26 UTC
Casper, is this still valid? Seems you can't reproduce for all of it, according to your previous comments. Please close if we can't do something about this.
Comment 12 Myriam Schweingruber 2010-06-07 23:37:06 UTC
Is this really a bug in Amarok or a problem with the Windows presets?
Comment 13 Dan 2010-08-11 11:51:31 UTC
This does not seem to be a issue with amarok, i can successfully bind and use my media keys with a Logitech G15 keyboard
Comment 14 Myriam Schweingruber 2010-08-11 12:08:40 UTC
Thank you for the feedback. I suspect a driver problem.