Skip to content

Commit

Permalink
no repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
david-loe committed Nov 21, 2024
1 parent 295bc72 commit 46a8102
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ref="form$"
:endpoint="false"
@submit="(form$: any) => postConnectionSettings(form$.data)"
@keydown.ctrl.s.prevent="() => postConnectionSettings(($refs.form$ as any).data)"></Vueform>
@keydown.ctrl.s.prevent="(e: KeyboardEvent) => {e.repeat ? null: postConnectionSettings(($refs.form$ as any).data)}"></Vueform>
</template>

<script lang="ts">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ref="form$"
:endpoint="false"
@submit="(form$: any) => postDisplaySettings(form$.data)"
@keydown.ctrl.s.prevent="() => postDisplaySettings(($refs.form$ as any).data)"></Vueform>
@keydown.ctrl.s.prevent="(e: KeyboardEvent) => {e.repeat ? null: postDisplaySettings(($refs.form$ as any).data)}"></Vueform>
</template>

<script lang="ts">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/settings/elements/SettingsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ref="form$"
:endpoint="false"
@submit="(form$: any) => postSettings(form$.data)"
@keydown.ctrl.s.prevent="() => postSettings(($refs.form$ as any).data)"></Vueform>
@keydown.ctrl.s.prevent="(e: KeyboardEvent) => {e.repeat ? null: postSettings(($refs.form$ as any).data)}"></Vueform>
</template>

<script lang="ts">
Expand Down

0 comments on commit 46a8102

Please sign in to comment.