feat(KeyboardShortcuts): add customizable shortcuts for common actions - #5097
maxpatiiuk wants to merge 18 commits into
Conversation
d19d3ec to
d3623a8
Compare
d3623a8 to
aa3beed
Compare
|
CSIRO mentioned users are having repetitive strain injuries due to this not being implemented |
|
Bugs:
|
The original keyboard shortcuts handling code was used as a basis for specify/specify7#5097, but then, on that PR I made logic more robust and added features. Now backporting the code from that PR back into calendar-plus. Fixes #255
The original keyboard shortcuts handling code was used as a basis for specify/specify7#5097, but then, on that PR I made logic more robust and added features. Now backporting the code from that PR back into calendar-plus. Fixes #255
aa3beed to
f0f64b7
Compare
|
Added ability to set shortcut to any URL: out.mp4Use cases:
By default, I only included keyboard shortcut to open the keyboard shortcut viewer, and will add shortcut to go to the home page. For the rest, we can let people set those to what makes sense to them (I avoided setting too many be default as things can conflict with os/browser/browser extensions, unless we go for 3-4 key shortcuts) TODO:
|
f0f64b7 to
6e9b479
Compare
emenslin
left a comment
There was a problem hiding this comment.
Can we make the save button orange or something in the shortcuts to url dialog? I think if you're editing a url it can be easy to not click the save button assuming that when you close out of the dialog the bigger save button will be orange. Or we could also consider having some sort of blocker or dialog if that would make more sense. I feel like when first testing the dialog I didn't even notice the save button appeared next to it but that could just be me.
02-07_12.11.mp4
On top of that if you create a new shortcut and don't press the gray save button, close the dialog, the save button on the naviagation menu turns orange but if you click that and go back to the shortcut it says 'No key binding assigned'
02-07_12.38.mp4
If you add a shortcut and then try to add another without saving the dialog freaks out
02-07_11.57.mp4
Also I feel like this layout can be a little confusing with the buttons and the spacing. Is the intention of the add button after a shortcut has been made for people to be able to add multiple shortcuts to one URL? And if that is the case could they all be in one line instead of having the add button below the shortcut and add button?

Also is there a plan to add more to this in the future? I feel like it looking just like preferences but only having the keyboard shortcuts looks a little odd especially considering the keyboard shortcuts opens a separate dialog so it just feels a little bare and confusing.

|
@maxpatiiuk, is this PR waiting on final testing or there are still some code changes needed? |
"Keyboard" is a bit too generic/ambiguous
- Replace "show nodes with children only" checkbox with a toggle button.
Reasons:
- The checkbox was the only thing below the tree viewer - occupying
an entire line of horizontal space.
- Because of how Tab and Shift+Tab keys are used in the tree viewer,
moving focus to elements below the tree viewer is not possible - you
can only move above the tree viewer. That made this checkbox
inaccessible from keyboard
- The label for this checkbox is long, adding visual noise - it's
cleaner as a small tidy button
- Don't display split view controls if split view is not enabled to
reduce visual clutter
6e9b479 to
580584e
Compare
There was a problem hiding this comment.
something is wrong with weblate integration? it is not supposed to commit double-quoted strings
There was a problem hiding this comment.
added brief docs on adding new keyboard shortcuts
cc @grantfitzsimmons @CarolineDenis in case you will need to add new shortcuts
|
@maxpatiiuk Is this something you are interested in continuing or would our team be needed to finish this? |
I am not aware of any outstanding issues |
|
Closing this in favor of #8521 |


Begins to fix: #1746
Checklist
and self-explanatory (or properly documented)
Testing instructions
Keyboard Shortcutsitem to User tools - verify it looks goodKeyboard Shortcutspage that has a default value assigned, make sure that the default keyboard shortcuts we have set do not already have an action assigned to them (we don't want to overwrite default browser or OS actions, unless we really have to, or unless user would expect us to do so)