From 295bc729cdf24bcddb1d2ee82f39c36a601764b8 Mon Sep 17 00:00:00 2001
From: david-loe <56305409+david-loe@users.noreply.github.com>
Date: Thu, 21 Nov 2024 10:05:42 +0100
Subject: [PATCH] refactor keydown
---
.../elements/ConnectionSettingsForm.vue | 20 +++++++------------
.../settings/elements/DisplaySettingsForm.vue | 19 ++++++------------
.../settings/elements/SettingsForm.vue | 19 ++++++------------
3 files changed, 19 insertions(+), 39 deletions(-)
diff --git a/frontend/src/components/settings/elements/ConnectionSettingsForm.vue b/frontend/src/components/settings/elements/ConnectionSettingsForm.vue
index 557cc45..85aaf41 100644
--- a/frontend/src/components/settings/elements/ConnectionSettingsForm.vue
+++ b/frontend/src/components/settings/elements/ConnectionSettingsForm.vue
@@ -1,5 +1,10 @@
- postConnectionSettings(form$.data)">
+ postConnectionSettings(form$.data)"
+ @keydown.ctrl.s.prevent="() => postConnectionSettings(($refs.form$ as any).data)">