Skip to content

Commit d4707c5

Browse files
committed
Improved shortcuts.
1 parent ca0cc40 commit d4707c5

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎--bundles--/app.bundle‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎views/designer.html‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3435,8 +3435,12 @@
34353435

34363436
function check() {
34373437

3438-
if (document.activeElement && document.activeElement.tagName === 'INPUT')
3439-
return;
3438+
let el = document.activeElement;
3439+
if (el) {
3440+
let tag = el.tagName;
3441+
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'IFRAME' || el.isContentEditable)
3442+
return;
3443+
}
34403444

34413445
if (common.form || common.form2 || common.form3)
34423446
return;

0 commit comments

Comments
 (0)