Headphones button not responding when screen is off
I recently bought a set of headphones with a small remote controller and mic. When I long press the remote button and the screen is on, my search agent (Google search, AutoVoice, etc) launches and I can speak whatever I need. On the other hand, when the screen is off the long press is not recognized, which is weird, as the single, double and triple press are recognized by, for instance, my music player.
Any ideas about how I can get my phone to recognize the long press while the screen is off?
Thanks in advance!
By the way, using CM 10.2.
Sent from my GT-I9300 using XDA Premium 4 mobile app