-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add common keyboard controls #947
Conversation
This reverts commit c9b158a.
It should probably be put on the DEVELOPMENT.md that this project is linted with ruff, didnt realize that until it errored for the first time |
Thanks for working on this :) |
There are a couple of issues with the current implementation as I see it. The first is actually an accessibility issue. My other issue is that due to how the |
It was very inconsistent otherwise, so I left them overridden on the main view, but disable these shortcuts in dialogs. |
Now about the actual keyboard shortcuts:
In the future I would also explore adding more modifiers to the arrow keys for forward/rewind (Shift+arrow, Alt+arrow), as I think that would be more useful than being able to set a custom interval in the preferences. |
Mark the primary menu as primary, so we get the F10 shortcut for free. Also remove the Enter key shortcut from the BookCard's FlowBoxChild, since it's no longer activatable, and instead the button inside it responds to Return
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is good to go now
I agree with most of the changes made, although I dont think its a good idea to copy VLCs playback speed behavior. I agree that a speed_reset button is a good idea, maybe it could be moved to the 0 key? The keyboard behavior in the rest of the app is very inconsistent and definitely needs some more work though. |
We could assign |
How about Shift or Cntrl +Up and Down? The up/down arrow keys are only used for volume now, and they dont move on most keyboard layouts (I hope). Changing the speed doesn't happen often enough that the modifier key is a problem, and atleast its consistent. |
Thanks, @Haaruun-I! |
A few issues have been asking for this, and the other PR is incomplete, so I thought I would just do it.
The new keybinds are:
The left/right arrow key controls have been moved so focusing on the main page should work to seek. As a side effect of that is the skip/rewind buttons in the playerbar are slightly more responsive
The search page cant type the brackets or plus minus keys without the current keybinds overriding them, but I'm looking for a fix to that now
EDIT: Search works as expected now