Skip to content

Commit

Permalink
IVYPORTAL-17429 Close expanded widgets with esc button (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntloc-axonivy authored Sep 10, 2024
1 parent 691b26f commit 2ce9185
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions AxonIvyPortal/portal/webContent/resources/js/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,13 @@ $(document).ready(function() {
focusedElement.focus();
}
}

if (event.key === 'Escape') {
var collapseWidgetBtn = $('[id*="collapse-link"]:visible');
if (collapseWidgetBtn) {
collapseWidgetBtn.click();
}
}
});

});
Expand Down

0 comments on commit 2ce9185

Please sign in to comment.