apply the save shortcut only for the top open modal

This commit is contained in:
Gani Georgiev committed 2026-06-08 16:06:45 +03:00
1 parent aa7be1edd1
commit f58a65e4be
12 files changed
+38 -16

No files matched your search

+8
View File
@@ -259,3 +259,11 @@ function findLargestZIndexModal(excludeEl) {
return largest;
}
/**
* Returns the current top-most open modal element.
* @return {Element|undefined}
*/
window.app.modals.getTop = function() {
return findLargestZIndexModal();
};