1 | | In #22237 a keyboard shortcut ESC was added to collapse the currently-expanded control, section, or panel. This feature turns out to exhibit some unexpected behaviors when attempting to use the ESC key to collapse the color picker: it causes the entire section to collapse, not just the color picker. Also, if there are any custom modal dialogs or other elements (like TinyMCE toolbars) that don't trap the ESC `keydown` event, hitting ESC will not only cause the modal/toolbar to close but also collapse the current control or section. |
| 1 | In #22237 a keyboard shortcut ESC was added to collapse the currently-expanded control, section, or panel. This feature turns out to exhibit some unexpected behaviors when attempting to use the ESC key to collapse the a `ThemesSection` modal, where closing the modal with ESC also causes the themes section to collapse unexpectedly, before then re-expanding to focus on the theme control. |
| 2 | |
| 3 | Also for the color picker, I expected that hitting ESC would close the color picker, but instead it causes the entire section to collapse, not just the color picker. |
| 4 | |
| 5 | Lastly, if there are any custom modal dialogs or other elements (like TinyMCE toolbars) that don't trap the ESC `keydown` event, hitting ESC will not only cause the modal/toolbar to close but also collapse the current control or section. |