You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm aiming to customise the help keymap for the file picker when picking a file.
For me personally, I don't like that it shows and there's the ability to go back and forth between other form elements, while you're zoomed in picking a file, with shift+tab and tab.
it then gets overwritten by the group and form setting the default keymaps.
I came across issue #73, so I set the keymap on the form instead but this removed all the keymaps for the other components.
Obviously the solution was to use the default keymap and only update the filepicker keymap but neither this nor the filepicker components keymap getting overridden is what I'd see as expected behaviour and the latter is not documented as far as I can find.
At this point though, I now have a keymap with prev and next removed when picking a file! Except it's also removed when not picking a file, so it doesn't give what I need and kind of breaks the form ☹️
KeyBind Issue
Additionally, I'd like to update the help to show going back in the filepicker, but there's no public function to update the help key binds.
Bonus Issue
If a file picker is the final component in a form, it shows enter to open (start picking a file) and enter to submit. Not only could this be confusing UX but it doesn't allow having an optionally filled in file picker component at the end of the form.
Potential Solution
Most of these issues could be handled by manually handling some key presses, doing a custom help instead of the built-in one etc but it would be nice if it was easier and certain aspects followed more expected behaviour.
I suggest;
To not have the form and group set default key maps if a custom one has already been applied
Now that components have a new zoom property, the ability to set a different key map when a component is zoomed, in this case when selecting a file with the file picker
The ability to change the help key binds of a component, i.e. adding back for the file picker
Let me know if anything isn't clear or if I've missed some obvious solution to the issues 🙂 thanks!
The text was updated successfully, but these errors were encountered:
@mikecbone I'm also very curious about adding new key bindings to existing components. For example, I'd like to add the key "c" to the Select component to create a new list entry. I know I can use WithFilter to get access to ALL messages going to the form and catch the "c" keypress, but I'm not sure how I can add it to Help. You mention doing a custom help instead of the built-in one - could you please advise as to how to do that? Thanks!
KeyMap Issue
I'm aiming to customise the help keymap for the file picker when picking a file.
For me personally, I don't like that it shows and there's the ability to go back and forth between other form elements, while you're
zoomed
in picking a file, withshift+tab
andtab
.If I set a custom keymap
it then gets overwritten by the group and form setting the default keymaps.
I came across issue #73, so I set the keymap on the form instead but this removed all the keymaps for the other components.
Obviously the solution was to use the default keymap and only update the filepicker keymap but neither this nor the filepicker components keymap getting overridden is what I'd see as expected behaviour and the latter is not documented as far as I can find.
At this point though, I now have a keymap with☹️
prev
andnext
removed when picking a file! Except it's also removed when not picking a file, so it doesn't give what I need and kind of breaks the formKeyBind Issue
Additionally, I'd like to update the help to show going
back
in the filepicker, but there's no public function to update the help key binds.Bonus Issue
If a file picker is the final component in a form, it shows
enter
to open (start picking a file) andenter
to submit. Not only could this be confusing UX but it doesn't allow having an optionally filled in file picker component at the end of the form.Potential Solution
Most of these issues could be handled by manually handling some key presses, doing a custom help instead of the built-in one etc but it would be nice if it was easier and certain aspects followed more expected behaviour.
I suggest;
zoom
property, the ability to set a different key map when a component is zoomed, in this case when selecting a file with the file pickerback
for the file pickerLet me know if anything isn't clear or if I've missed some obvious solution to the issues 🙂 thanks!
The text was updated successfully, but these errors were encountered: