Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play/Pause media cannot be mapped anymore? #22086

Closed
stefangabos opened this issue Nov 14, 2022 · 25 comments
Closed

Play/Pause media cannot be mapped anymore? #22086

stefangabos opened this issue Nov 14, 2022 · 25 comments
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager Resolution-Can't Repro Couldn't reproduce the issue on the most recent code path

Comments

@stefangabos
Copy link

Microsoft PowerToys version

0.64.1

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Keyboard Manager

Steps to reproduce

I have successfully mapped previously CTRL (left) + ALT (left) + F10 to "Play/Pause Media" but it stopped working since the previous release. If I use the same shortcut for "Next track" it works.

I also have mapped CTRL (left) + ALT (left) + F11 for "Previous Track" and CTRL (left) + ALT (left) + F12 for "Next Track" and these kept working throughout.

✔️ Expected Behavior

Having CTRL (left) + ALT (left) + F10 mapped to "Play/Pause Media" I am expecting for my Spotify (and/or YouTube) to stop/resume playing when the combination is pressed but nothing happens. This has been working before the previous release.

❌ Actual Behavior

Having CTRL (left) + ALT (left) + F10 mapped to "Play/Pause Media" I am expecting for my Spotify (and/or YouTube) to stop/resume playing when the combination is pressed but nothing happens. This has been working before the previous release.

Other Software

No response

@stefangabos stefangabos added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Nov 14, 2022
@jaimecbernardo
Copy link
Collaborator

Just gave it a test on 0.64.1 and it's working for me. A /bugreport might help.

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Nov 23, 2022
@ghost
Copy link

ghost commented Nov 23, 2022

Hi there!

We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
Report Bug

@jaimecbernardo jaimecbernardo added the Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager label Nov 23, 2022
@androidotai
Copy link

Same issue as @stefangabos.

PowerToysReport_2022-11-24-07-26-37.zip

This is my report bug.

image

I set:

  • F9 as Previous Track
  • F10 as Play/Pause Media (NOT WORKING)
  • F11 as Next Track

@stefangabos
Copy link
Author

Here's my zip

PowerToysReport_2022-11-24-10-53-10.zip

And here's my setup where F10 is not working

image

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Nov 24, 2022
@jaimecbernardo
Copy link
Collaborator

In your cases, does it only happen for Play/Pause Media?
For example, if you do F11 for Play/Pause Media and F10 for the function you're exchanging it with, Play/Pause Media still doesn't work with F11 while the other function works with F10 ?
/needinfo

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Nov 25, 2022
@stefangabos
Copy link
Author

I changed it to F8 and still does the same. BUT it seems to be working fine if Microsoft Teams is not running (I have only 8 gigabytes of RAM and I shut Teams down when I don't need it) and this is how I discovered that it is working.

When Teams is running, even if I have Spotify as the focused window, the shortcut for Play/Pause is not working. Therefore, I am not sure if the issue is related to PowerToys...

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Nov 25, 2022
@stefangabos
Copy link
Author

this seems to be fixed in 0.65.0
@androidotai can you also confirm?

@androidotai
Copy link

Yeah, working as expected in 0.65.0. Thanks.

@carlosmatioli
Copy link

I updated to the currente version (0.65.0). It worked on the first day, but it stoped working today. When I close MS Teams, it works just fine. And the problem is only with the Play/Pause command.
The problem seems to happen only with shortcuts remaped. With remapped Keys is working just fine.

@stefangabos
Copy link
Author

i confirm. it sometimes also works with teams but i haven't yet figured out the pattern

@stefangabos
Copy link
Author

also, other strange things started happening as of lately - i use a lot "ctrl+fn+left" (where "left" is also "home" when used with "fn") and instead of going to the top of the page - like it did maybe 2 weeks ago - it doesn't do anything anymore.

if i close powertoys the correct functionality is restored

@carlosmatioli
Copy link

I don't know why, but when I remap a key (F10) to Play/Pause media, pressing just F10 it doesn't work (with MS Teams in tray). But pressing Win+F10 it works properly.

@echan1
Copy link

echan1 commented Jan 10, 2023

I'm running into the a very similar issue, except i bound F5 with Play/Pause. I am running MS teams in the background and playing Spotify.
Win+F5 works properly, as @carlosmatioli discovered (thanks for that!), but when i press F5, it plays the MS Teams ringing tone or does nothing at all.

@stefangabos
Copy link
Author

So, I think the issue is not with the keyboard combination but rather with Teams hijacking the Play/Pause control

@stefangabos
Copy link
Author

I am saying that because Win + F(anything) is not working for me. After the update to 0.66.0 it again worked for a while (a day) with Teams being on, but again I don't know what made it stop working

@stefangabos
Copy link
Author

I just quit and restarted Teams and now play/pause is working as expected. I don't know yet what makes it stop working at some point

@echan1
Copy link

echan1 commented Jan 10, 2023

I found this workaround. So far it seems to have worked. I'll report back in a few days.
https://superuser.com/questions/1608218/how-to-avoid-microsoft-teams-to-act-as-a-multimedia-application

Start Teams with -disable-features=HardwareMediaKeyHandling

eg. C:\Users\Username\AppData\Local\Microsoft\Teams\current\Teams.exe -disable-features=HardwareMediaKeyHandling

or C:\Users\Username\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe" --process-start-args="-disable-features=HardwareMediaKeyHandling"

@echan1
Copy link

echan1 commented Jan 11, 2023

I should've read the comments closer - looks like this workaround no longer works as of Sept 2022 update

@stefangabos
Copy link
Author

stefangabos commented Jan 11, 2023

The above confirms that the issue is with Teams hijacking the Play/Pause button.

@stefangabos
Copy link
Author

And finally, it looks like Play/Pause is not working after making a call in Teams. Therefore, restarting Teams after a call would keep things working until the next one.

Another solution involving changing hex values in the exe file can be found by reading on from here

@stefangabos
Copy link
Author

I think we can close this one now. Thanks to everybody for the feedback I am glad we sort it out.

@carlosmatioli
Copy link

carlosmatioli commented Jan 11, 2023 via email

@echan1
Copy link

echan1 commented Jan 11, 2023 via email

@stefangabos
Copy link
Author

Alt-F10 in my case also works for play/pause so, yes, for now i can live with that

@cinnamon-msft
Copy link
Collaborator

Not able to repro this, going to close. Let us know if you see this again!

@cinnamon-msft cinnamon-msft added the Resolution-Can't Repro Couldn't reproduce the issue on the most recent code path label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager Resolution-Can't Repro Couldn't reproduce the issue on the most recent code path
Projects
None yet
Development

No branches or pull requests

6 participants