From 70bd8e8176f0335d30a2e5a29c83dadf6a69a90a Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Wed, 8 Aug 2018 22:16:13 +0900
Subject: [PATCH] refs #453 Check and submit instance with enter key in login
form
---
src/renderer/components/Login.vue | 12 +-----------
src/renderer/components/Login/LoginForm.vue | 21 +++++++++++++++++++--
2 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/src/renderer/components/Login.vue b/src/renderer/components/Login.vue
index 21fa9c99..87afd5a5 100644
--- a/src/renderer/components/Login.vue
+++ b/src/renderer/components/Login.vue
@@ -36,7 +36,7 @@ export default {
diff --git a/src/renderer/components/Login/LoginForm.vue b/src/renderer/components/Login/LoginForm.vue
index 60ba2016..e9ec34b5 100644
--- a/src/renderer/components/Login/LoginForm.vue
+++ b/src/renderer/components/Login/LoginForm.vue
@@ -1,7 +1,7 @@
-
+
@@ -106,16 +106,33 @@ export default {
return false
}
})
+ },
+ handleKey (event) {
+ if (!this.selectedInstance) {
+ this.confirm('loginForm')
+ } else {
+ this.login()
+ }
}
}
}