Address LaySite 1.4.0 review findings

This commit is contained in:
2026-11-26 01:50:58 +08:00
parent 2e9b5fa17c
commit 85583b3c87
7 changed files with 32 additions and 9 deletions
+3
View File
@@ -2231,6 +2231,9 @@ jQuery(function ($) {
$history.on('click', function () { stepHistory(this.dataset.canvasHistory === 'undo' ? -1 : 1); });
$layout.on('keydown.canvasHistory', historyShortcut);
$studio.find('dialog').on('close.canvasHistory', () => {
if (document.activeElement === document.body) $studio.get(0).focus({preventScroll: true});
});
$settings.on('input change', ':input', function (event) {
const group = event.type === 'input' && this.matches('input:not([type=hidden]), textarea') ? this : null;
captureHistory(group);