mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Ensure focus after paste
This commit is contained in:
parent
c1eb254758
commit
aaf84870aa
3 changed files with 9 additions and 1 deletions
|
@ -4030,6 +4030,10 @@ proto.insertHTML = function ( html, isPaste ) {
|
|||
|
||||
this.setSelection( range );
|
||||
this._updatePath( range, true );
|
||||
// Safari sometimes loses focus after paste. Weird.
|
||||
if ( isPaste ) {
|
||||
this.focus();
|
||||
}
|
||||
} catch ( error ) {
|
||||
this.didError( error );
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1740,6 +1740,10 @@ proto.insertHTML = function ( html, isPaste ) {
|
|||
|
||||
this.setSelection( range );
|
||||
this._updatePath( range, true );
|
||||
// Safari sometimes loses focus after paste. Weird.
|
||||
if ( isPaste ) {
|
||||
this.focus();
|
||||
}
|
||||
} catch ( error ) {
|
||||
this.didError( error );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue