Skip to content

Commit

Permalink
feature/IVYPORTAL-17429-Close-expanded-widgets-with-esc-button-10 - A…
Browse files Browse the repository at this point in the history
…dd support esc
  • Loading branch information
ntloc-axonivy committed Sep 10, 2024
1 parent 691b26f commit 44ecfa5
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 44ecfa5

Please sign in to comment.