Comments (4)
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audiodeviceswitcher.