[geary/wip/728002-webkit2: 86/96] Fix up new composers not getting correct focus.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/728002-webkit2: 86/96] Fix up new composers not getting correct focus.
- Date: Sat, 14 Jan 2017 12:19:03 +0000 (UTC)
commit 56c27261d2a596998c935c1d3840584a855fc083
Author: Michael James Gratton <mike vee net>
Date: Fri Jan 6 00:19:50 2017 +1100
Fix up new composers not getting correct focus.
* src/client/application/geary-controller.vala
(GearyController::create_compose_widget_async): Explictly set the focus
once the composer has been added to the widget hierarchy.
src/client/application/geary-controller.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index e2feefe..0e7ae7e 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -2349,6 +2349,10 @@ public class GearyController : Geary.BaseObject {
widget.state = ComposerWidget.ComposerState.DETACHED;
}
+ // Now that the composer has been added to a window, we can
+ // set up its focus.
+ widget.set_focus();
+
Geary.EmailIdentifier? draft_id = null;
if (is_draft) {
draft_id = referred.id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]