0
Fork 0
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:
Neil Jenkins 2016-07-14 10:39:20 +10:00
parent c1eb254758
commit aaf84870aa
3 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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 );
}