Refactored keyboard navigation to its own keynav.js. Implemented keyboard navigation on modal dialogs.

This commit is contained in:
Leo Vasanko
2025-12-10 13:57:25 +00:00
parent fbce5b97db
commit 1fe14d5f5f
16 changed files with 631 additions and 330 deletions
+2 -1
View File
@@ -23,7 +23,7 @@
<section class="section-block" v-else-if="!canRegister">
<div class="section-body center">
<div class="button-row center" style="justify-content: center;">
<div class="button-row center" style="justify-content: center;" @keydown="handleButtonKeydown">
<button class="btn-secondary" @click="goHome">Return to sign-in</button>
</div>
</div>
@@ -60,6 +60,7 @@ import { computed, onMounted, reactive, ref } from 'vue'
import passkey from '@/utils/passkey'
import { getSettings, uiBasePath } from '@/utils/settings'
import { apiJson, ApiError, getUserFriendlyErrorMessage } from '@/utils/api'
import { handleButtonKeydown } from '@/utils/keynav'
const status = reactive({
show: false,