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)
committerPaul Donald <newtwen@gmail.com>
Thu, 7 Mar 2024 00:29:06 +0000 (01:29 +0100)
commit53e8f108a67fa23fa5c1cee1b804c6fa027e4794
treeda68930c9ef714a32c2a864a6ae01b6aea0b633b
parent69867dbb3269be605975f9343a0e8ed3baebdd95
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>
(cherry picked from commit 317ed4a0432b3f57c0cf76e633c180b171b7aae1)
modules/luci-base/htdocs/luci-static/resources/ui.js