WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Closing expandable menus in dialog with Escape key

for

From: glen walker
Date: Mar 4, 2021 1:54PM


I agree with the double ESC. The first closes the menu and the second
closes the dialog. Not from a WCAG perspective, which doesn't really
address this situation, but more from user experience. For me personally,
I hate it when I press ESC and *two* things happen. This happens in
LinkedIn (web interface) but I can't pinpoint the exact scenario. I had
started a message to someone, did something else in LinkedIn (which keeps
the non-modal message dialog up), then pressed escape to cancel whatever
else I was doing and then the message dialog asks if I want to discard my
message. I'm glad it has that confirmation message before discarding
because I would have lost a lot of typing. I was escaping from a different
task but the message dialog thought I wanted to escape from there too.
Probably a bug on LinkedIn with not draining the event, but it's a similar
situation to the dialog menu scenario.