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')" @click="togglePreferences('zenMode')"
/> />
</CommonTooltip> </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')"> <CommonTooltip :content="$t('settings.about.sponsor_action')">
<NuxtLink <NuxtLink
flex flex
@ -92,5 +95,10 @@ function toggleDark() {
GitHub GitHub
</NuxtLink> </NuxtLink>
</div> </div>
<div>
<button hover:underline @click="toggleKeyboardShortcuts">
{{ $t('magic_keys.dialog_header') }}
</button>
</div>
</footer> </footer>
</template> </template>