WebAIM - Web Accessibility In Mind

E-mail List Archives

Closing expandable menus in dialog with Escape key

for

From: Fire In The Sky
Date: Mar 4, 2021 12:03PM


Hello,

Looking for some thoughts on the situation where a dialog has
expandable menus (similar to 3 dots more options menu), now when this
menu is open then upon pressing Esc what would be the expected
behavior. Should only the menu get collapsed or the the entire dialog
should close?

Currently since the Esc key is tied to the dialog, so even when the
menu is expanded, pressing Esc results in closing the dialog.

What could be the best way to handle this situation?

Thanks!
Ajay