feat: playlists and albums now open when pressing enter if they're focused (only home tab)

This commit is contained in:
Roberto Tonino 2020-09-23 18:41:57 +02:00
parent db1a0a5ec3
commit c1198037a8
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,6 @@
<section class="home_section" ref="notLogged" v-if="!isLoggedIn"> <section class="home_section" ref="notLogged" v-if="!isLoggedIn">
<p id="home_not_logged_text">{{ $t('home.needTologin') }}</p> <p id="home_not_logged_text">{{ $t('home.needTologin') }}</p>
<!-- <button type="button" name="button" @click="openSettings">{{ $t('home.openSettings') }}</button> -->
<router-link tag="button" name="button" :to="{ name: 'Settings' }"> <router-link tag="button" name="button" :to="{ name: 'Settings' }">
{{ $t('home.openSettings') }} {{ $t('home.openSettings') }}
</router-link> </router-link>
@ -18,6 +17,7 @@
:key="release.id" :key="release.id"
class="release clickable" class="release clickable"
@click="playlistView" @click="playlistView"
@keyup.enter="playlistView"
:data-id="release.id" :data-id="release.id"
tabindex="0" tabindex="0"
> >
@ -55,6 +55,7 @@
:key="release.id" :key="release.id"
class="release clickable" class="release clickable"
@click="albumView" @click="albumView"
@keyup.enter="albumView"
:data-id="release.id" :data-id="release.id"
tabindex="0" tabindex="0"
> >