Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Autofocus the search box when the "Search" button is clicked.

Tomasz Mikus2c417cd7110b
diff --git a/auth/lib/ui/home_page.dart b/auth/lib/ui/home_page.dart
index b81402439b..98ee15cfc1 100644
--- a/auth/lib/ui/home_page.dart
+++ b/auth/lib/ui/home_page.dart
@@ -338,8 +338,8 @@ class _HomePageState extends State<HomePage> {
_searchText = _textController.text;
// Request focus on the search box
- // For Windows only for now. "Platform.isWindows" can be removed if other platforms has been tested.
- if (Platform.isWindows) {
+ // For Windows and macOS only for now. This if statement can be removed if other platforms has been tested.
+ if (Platform.isWindows || Platform.isMacOS) {
searchBoxFocusNode.requestFocus();
}
}