[simple_browser] unfocus on navigation
Change-Id: I90aa756b1bf8b4f13e0ea5f73cf6a5001bea3a64
diff --git a/bin/simple_browser/lib/src/widgets/navigation_bar.dart b/bin/simple_browser/lib/src/widgets/navigation_bar.dart
index 7869dd6..add7bab 100644
--- a/bin/simple_browser/lib/src/widgets/navigation_bar.dart
+++ b/bin/simple_browser/lib/src/widgets/navigation_bar.dart
@@ -36,6 +36,11 @@
_controller = TextEditingController();
_urlListener = widget.bloc.url.listen((url) {
_controller.text = url;
+ // TODO: Should remove once system wide focus management works
+ // This is a hack, focus should be removed because the user clicked anywhere in the page,
+ // not because a new page has loaded. But we don't know the user clicked, because the
+ // webpage is a separate process.
+ _focusNode.unfocus();
});
super.initState();
}