xenolightning / AudioSwitcher_v1

Version 1 of Audio Switcher
Microsoft Public License
894 stars 90 forks source link

AudioSwitcher ignores service keys #2174

Open sambul13 opened 6 years ago

sambul13 commented 6 years ago

I suggest to automatically block assigning some common shortcuts used in Windows and popular browsers. As well, Audio switching should be disabled when typing in TextAreas in browsers, or generally typing a text in a Text Editor or similar program, while listening to a sound played by another program or browser tab.

For example, when typing in forum textfields in Firefox, while listening to a Youtube music in another tab, AudioSwitcher frequently changes speakers when some letters are entered, despite they don't match shortcuts. For example, while I type "D3" on this board or even "3", audio switcher changed to speaker assigned to Alt+3 combo. Typing in textareas should not result in switching speakers, or disregarding Control or Alt keys. May be switching should only work, when textarea field is inactive?

sambul13 commented 6 years ago

In fact, I just check, and AudioSwitcher disregards service keys also outside of textareas. I just punch 2 or 3 while Desktop is active, and it switches speakers assigned to Alt+2 and Alt+3.

xenolightning commented 6 years ago

That's entirely unmanageable, there's no way to create a list of shortcut keys that browsers or other applications use.

Users can change any of those.

If a hotkey conflicts from Audio Switcher, then I suggest changing the hotkey in Audio Switcher to something else.

xenolightning commented 6 years ago

I'm just going to test the alt modifier and see if it is ignoring it.

xenolightning commented 6 years ago

Looks like it's doing something weird with the alt key modifier, can be re-produced fairly easily.

Only seems to affect hotkeys using just the alt modifier alone, eg. crtl+alt works as expected.