Address LaySite 1.4.0 review findings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user