Fix composer body text caret not being visible on reply. Bug 788797.
* src/client/composer/composer-widget.vala (ComposerWidget::set_focus): Ensure we grab the web view's focus only after its content has finished loading.
This commit is contained in:
parent
f1e92feae2
commit
343bb640e9
1 changed files with 9 additions and 2 deletions
|
|
@ -812,8 +812,15 @@ public class ComposerWidget : Gtk.EventBox {
|
||||||
this.to_entry.grab_focus();
|
this.to_entry.grab_focus();
|
||||||
else if (not_compact && Geary.String.is_empty(subject))
|
else if (not_compact && Geary.String.is_empty(subject))
|
||||||
this.subject_entry.grab_focus();
|
this.subject_entry.grab_focus();
|
||||||
else
|
else {
|
||||||
this.editor.grab_focus();
|
// Need to grab the focus after the content has finished
|
||||||
|
// loading otherwise the text caret will not be visible.
|
||||||
|
if (this.editor.is_content_loaded) {
|
||||||
|
this.editor.grab_focus();
|
||||||
|
} else {
|
||||||
|
this.editor.content_loaded.connect(() => { this.editor.grab_focus(); });
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initializes all actions and adds them to the action group
|
// Initializes all actions and adds them to the action group
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue