Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROU-11053: Fixed A11Y issues at the menu when @Mobile and others #986

Merged
merged 16 commits into from
Sep 9, 2024
Merged
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"diffEditor.ignoreTrimWhitespace": true,
"files.autoSave": "afterDelay",
"files.autoSave": "off",
"editor.minimap.maxColumn": 170,
"editor.wordWrapColumn": 170,
"editor.formatOnSave": true,
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/OSFramework/OSUI/Pattern/Submenu/Submenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ namespace OSFramework.OSUI.Patterns.Submenu {

// Call methods to close, based ok e.key
private _keypressBalloonCallback(e: KeyboardEvent): void {
e.stopPropagation();

// Close the submenu when pressing Esc
if (e.key === GlobalEnum.Keycodes.Escape && this._isOpen) {
this.close();
Expand Down
Loading