-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support Volume Up/Down keypresses for amps that only support nudging volume #274
Comments
There's a couple of different options here, and I'd like your opinion :) We could add support for this situation to
Alternatively, we could do nothing, and just leave this feature unsupported for such amps. Keyboard control via focusing the -/+ buttons works well enough. |
We can always leave it as-is. That said, a few thoughts if we want to make changes (which I think would be great if time allows):
Actually I just realized the arrow keys might interfere with scrolling. I mostly use the mouse so haven't noticed this; and I don't have it running right now to test (I broke my network a couple of days ago and need to fix it up 😔 ). I'll have more thoughts once I figure my network out and can actually try this stuff again. Apologies! |
I just tested the volume-as-integer PRs and everything worked great! Unrelated to those PRs, my testing did actually confirm what I thought about the arrow hotkeys overriding the ability to scroll the window using the arrow keys. That's something I never noticed before (I'm always using the mouse). I'm OK with not letting that influence how we proceed here, but I wanted to mention it for completeness. |
Great, thanks! A slight correction - I misremembered the difference between Good thinking about uparrow/downarrow being used to scroll the page. I'd propose changing to use the plus- and minus-keys instead, which fixes that issue and makes it consistent with the volume nudge buttons. The only browser action that I know of associated with plus and minus is zooming the browser, which (for Chrome, at least) is bound to ctrl-plus and ctrl-minus leaving us safe to use unmodified plus/minus as well as shift-plus/shift-minus for the larger steps. |
Thanks for the And I agree about removing the arrow key hotkeys and replacing them with the plus/minus keys. Definitely sounds like a good approach. |
One problem - it looks like Mantine's (And I thought I sent this comment yesterday, apologies if I sent it to the wrong issue or something) |
Good to know about the Mantine limitation. Thanks for following up on that. I'm happy to wait and see what happens there. |
Looks like this has been fixed in Mantine 7.14.1, which is awesome. Unfortunately vibinui is still on Mantine v6, so benefiting from the fix might require migrating to v7. That's something which should be done at some point anyway, but it's likely non-trivial (I haven't looked for a while but I think it may require a fair number of changes to how styling is handled). For future reference there's a migration guide at https://mantine.dev/guides/6x-to-7x/ That said, there might be other options available other than a full v7 migration. |
I've sent you pull request #278, which allows the existing up/down arrow keys to be used for volume nudging. |
A very quick prototype says that we could still switch to using the -/+ keys by bypassing Mantine's Even with the fix to allow Mantine to support So we could switch to the -/+ keys and use our own event listener to restrict it to just the numpad keys by looking at the I'd say that's way too much complexity for a such minor feature where the arrow keys work well enough, so I'd propose leaving the keys as uparrow/downarrow. But it's not very much code and I'd be happy to add it in if you'd prefer. |
Oh funny, my keyboard doesn't have a numeric keypad so I've only been thinking about the I agree about the complexity and leaving things as they are with just the uparrow/downarrow keys. We can always revisit this in the future if necessary. Thanks for testing the |
I'll close this out if that's ok - I think it's completed with #278. There's a remaining question about whether we can use -/+ to match the UI, but my original intention was just to bring the Control Bus support up to feature parity with other amps. |
For the CXNv2 in Control Bus mode, we can't control the volume numerically. Instead we can only send volume up/down commands to the streamer.
VibinUI has (in
KeyboardShortcutsManager
) support for controlling the volume using the up and down arrows. This presently uses the numeric volume setting, and so doesn't support configurations such as the CXNv2's Control Bus mode.The text was updated successfully, but these errors were encountered: