luci-base: ui.js: further keyboard navigation improvements for dropdowns
authorJo-Philipp Wich <jo@mein.io>
Wed, 21 Feb 2024 14:30:16 +0000 (15:30 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 21 Feb 2024 14:33:08 +0000 (15:33 +0100)
commit317ed4a0432b3f57c0cf76e633c180b171b7aae1
treeadcd8c8e4bf0616d209ac77dd9831d667441a20a
parent42bd2af3fe2b3902cf0b48469e155c324ef5322d
luci-base: ui.js: further keyboard navigation improvements for dropdowns

 - Ensure that pressing escape within the custom choice input closes the
   dropdown list but not the parent modal dialog

 - Ensure that added custom choice elements are tabbable

 - Retain focus on dropdown when closing dropdown

 - Consistently focus input textarea when tabbing into custom choice item

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js