danielo515 / obsidian-modal-form

Define forms for filling data that you will be able to open from anywhere you can run JS
https://danielorodriguez.com/obsidian-modal-form/
MIT License
203 stars 17 forks source link

[Feature request] Auto-Reselect / Focus Entry Field in Multiselect After Value Submission #138

Closed tsteckenborn closed 9 months ago

tsteckenborn commented 9 months ago

Summary

This feature request proposes an enhancement to the user interface of the multiselect component. The main goal is to improve user efficiency by automatically reselecting or reactivating the entry field after a user submits a value using the Enter key. This will facilitate quick and seamless entry of multiple values without requiring additional clicks or manual field selection.

Current Behavior

Currently, after a value is entered into the multiselect field and submitted by pressing the Enter key, the focus is moved away from the entry field. This requires users to manually click back into the field to enter additional values, which can be time-consuming and disrupt the flow of data entry.

Desired Behavior

After a value is entered into the data query multi-select field and submitted with the Enter key, the entry field should automatically be reselected or reactivated. This would allow users to continue typing and entering subsequent values without any additional clicks or manual reselection of the entry field.

danielo515 commented 9 months ago

Yes, fully agree. This is something I wanted to do since the very beginning, but the complexity of the solution that I was using at that time (copy pasted code from other plugins) combined with my lack of experience with obsidian API and general mechanisms at that time prevented me from achieving what I wanted. At that time I decided to just deliver the current implementation and improve on it later. I will try it again now the implementation is simpler.

On Thu, Nov 23, 2023 at 9:36 AM Tobias Steckenborn @.***> wrote:

Assigned #138 https://github.com/danielo515/obsidian-modal-form/issues/138 to @danielo515 https://github.com/danielo515.

— Reply to this email directly, view it on GitHub https://github.com/danielo515/obsidian-modal-form/issues/138#event-11044516080, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARKJWN3WZKX5T6ZEH3NMZDYF4DJNAVCNFSM6AAAAAA7XMQBC2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGA2DINJRGYYDQMA . You are receiving this because you were assigned.Message ID: @.*** com>

--

https://danielorodriguez.com