mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Better solution for #501
This commit is contained in:
parent
10e36e96b6
commit
ff81aa6abc
1 changed files with 6 additions and 1 deletions
7
dev/External/SquireUI.js
vendored
7
dev/External/SquireUI.js
vendored
|
|
@ -493,7 +493,12 @@ class SquireUI
|
||||||
}
|
}
|
||||||
|
|
||||||
focus() {
|
focus() {
|
||||||
('plain' == this.mode ? this.plain : this.squire).focus();
|
if ('plain' == this.mode) {
|
||||||
|
this.plain.focus();
|
||||||
|
this.plain.setSelectionRange(0, 0);
|
||||||
|
} else {
|
||||||
|
this.squire.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue