From 0572139f0f7b3f932dbe34dfb367508a61aef6d8 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 13 Nov 2024 13:00:37 +0300 Subject: [PATCH] Enter key support --- .../components/layout/AppDesigner.vue | 32 +++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/apps/showcase/components/layout/AppDesigner.vue b/apps/showcase/components/layout/AppDesigner.vue index ae899c6fa..6b3be803b 100644 --- a/apps/showcase/components/layout/AppDesigner.vue +++ b/apps/showcase/components/layout/AppDesigner.vue @@ -36,8 +36,10 @@
- - +
+ + +
@@ -46,11 +48,13 @@ Common
- - - - - +
+ + + + + +
@@ -65,10 +69,14 @@ - +
+ +
- +
+ +
@@ -335,6 +343,12 @@ app.mount("#app"); refreshACTokens() { this.acTokens = []; this.generateACTokens(null, this.preset); + }, + onKeyDown(event) { + if (event.code === 'Enter' || event.code === 'NumpadEnter') { + this.apply(); + event.preventDefault(); + } } } };