Giter Club home page Giter Club logo

Comments (4)

josetr avatar josetr commented on July 19, 2024

Hi. It is possible to register a hotkey for such media buttons but the reason why it doesn't work is that we are using UIElement.ProcessKeyboardAccelerators to detect the initial combination before actually registering it and this event is not called for those buttons and probably a few others. My guess is that it doesn't consider them as valid accelerators or keyboard shortcuts.

Manually detecting this odd combination using events like UIElement.KeyDown is certainly possible but this is more error-prone than what we've got.

from audiodeviceswitcher.

josetr avatar josetr commented on July 19, 2024

Perhaps the bigger issue I see is that registering a hotkey with such a combination won't stop other applications such as Spotify from handling these media buttons and the outcome isn't pretty: you will change the audio device, but also your current song.

from audiodeviceswitcher.

adem404 avatar adem404 commented on July 19, 2024

I forgot about the Spotify integration of the media keys maybe because i dont use them. Some years ago i used this application back then i think the media keys got registred as input. But time pass and api changes. Thx for the reply.

from audiodeviceswitcher.

josetr avatar josetr commented on July 19, 2024

No problem. Do note that currently, it's not even possible to disable the media keys in Spotify (https://community.spotify.com/t5/Desktop-Windows/How-to-disable-Hardware-Media-Key/td-p/4966916) so I'm gonna this issue for now.

from audiodeviceswitcher.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.