feat: add keyboard shortcut helper link or button (#2365)

This commit is contained in:
TAKAHASHI Shuuji 2023-08-29 00:24:34 +09:00 committed by GitHub
parent 1ac3164d0c
commit 5ef2996b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,9 @@ function toggleDark() {
@click="togglePreferences('zenMode')"
/>
</CommonTooltip>
<CommonTooltip :content="$t('magic_keys.dialog_header')">
<button flex i-ri:keyboard-box-line dark-i-ri:keyboard-box-line text-lg :aria-label="$t('magic_keys.dialog_header')" @click="toggleKeyboardShortcuts" />
</CommonTooltip>
<CommonTooltip :content="$t('settings.about.sponsor_action')">
<NuxtLink
flex
@ -92,5 +95,10 @@ function toggleDark() {
GitHub
</NuxtLink>
</div>
<div>
<button hover:underline @click="toggleKeyboardShortcuts">
{{ $t('magic_keys.dialog_header') }}
</button>
</div>
</footer>
</template>