Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Managing multiple text fields with focus and selection is hard

0 views
Skip to first unread message

Mike Austin

unread,
Feb 27, 2025, 3:41:09 PMFeb 27
to PiLuD
I'm creating a "Checklist" component which uses independent text fields but should feel like editing plain text for the most part. This involves managing focus and selection between the fields when you press enter or delete on the first or last column.

It's mostly working, but has a few setTimeout()s which are ugly and maybe not 100% guaranteed. I think I'll need to implement a command/queue system so it behaves nicely without the hacks.

[x] Do this
[  ] Do that

Reply all
Reply to author
Forward
0 new messages