mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-29 17:28:39 +01:00
Fix keyboard navigation in library selection
This patch fixes the keyboard navigation in the library selection of the main app bar. Without this patch, no options are selectable via keyboard and selecting an option and hitting return has no effect.
This commit is contained in:
parent
308ccf470f
commit
fc6aa1f91f
@ -10,7 +10,7 @@
|
||||
<transition name="menu">
|
||||
<ul v-show="showMenu" class="absolute z-10 -mt-px min-w-48 w-full bg-primary border border-black-200 shadow-lg max-h-56 rounded-b-md py-1 overflow-auto focus:outline-none sm:text-sm" tabindex="-1" role="listbox">
|
||||
<template v-for="library in librariesFiltered">
|
||||
<li :key="library.id" class="text-gray-400 hover:text-white select-none relative py-2 cursor-pointer hover:bg-black-400" role="option" @click="selectLibrary(library)">
|
||||
<li :key="library.id" class="text-gray-400 hover:text-white relative py-2 cursor-pointer hover:bg-black-400" role="option" tabindex="0" @keydown.enter="selectLibrary(library)" @click="selectLibrary(library)">
|
||||
<div class="flex items-center px-2">
|
||||
<ui-library-icon :icon="library.icon" class="mr-1.5" />
|
||||
<span class="font-normal block truncate font-sans text-sm">{{ library.name }}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user