From b32e15a3ea1176eb4f77920fa97b46f1d95c3828 Mon Sep 17 00:00:00 2001
From: julian <julian@cypherstack.com>
Date: Tue, 22 Nov 2022 07:13:03 -0600
Subject: [PATCH] desktop login on enter pressed

---
 lib/pages_desktop_specific/desktop_login_view.dart | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/pages_desktop_specific/desktop_login_view.dart b/lib/pages_desktop_specific/desktop_login_view.dart
index f865fad47..eb5dec18a 100644
--- a/lib/pages_desktop_specific/desktop_login_view.dart
+++ b/lib/pages_desktop_specific/desktop_login_view.dart
@@ -165,6 +165,12 @@ class _DesktopLoginViewState extends ConsumerState<DesktopLoginView> {
                     obscureText: hidePassword,
                     enableSuggestions: false,
                     autocorrect: false,
+                    autofocus: true,
+                    onSubmitted: (_) {
+                      if (_continueEnabled) {
+                        login();
+                      }
+                    },
                     decoration: standardInputDecoration(
                       "Enter password",
                       passwordFocusNode,