Skip to content

Commit

Permalink
feat: add instruction to disable "Virtual Scrolling" setting in short…
Browse files Browse the repository at this point in the history
…cut help
  • Loading branch information
shuuji3 committed Apr 22, 2024
1 parent facc9a8 commit aa171a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/magickeys/MagickeysKeyboardShortcuts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface ShortcutDef {
interface ShortcutItem {
description: string
shortcut: ShortcutDef
info?: string
}
interface ShortcutItemGroup {
Expand All @@ -35,10 +36,12 @@ const shortcutItemGroups = computed<ShortcutItemGroup[]>(() => [
{
description: t('magic_keys.groups.navigation.next_status'),
shortcut: { keys: ['j'], isSequence: false },
info: t('magic_keys.info.disable_virtual_scrolling'),
},
{
description: t('magic_keys.groups.navigation.previous_status'),
shortcut: { keys: ['k'], isSequence: false },
info: t('magic_keys.info.disable_virtual_scrolling'),
},
{
description: t('magic_keys.groups.navigation.go_to_search'),
Expand Down Expand Up @@ -147,8 +150,11 @@ const shortcutItemGroups = computed<ShortcutItemGroup[]>(() => [
:key="item.description"
flex my-1 lg:my-2 justify-between place-items-center max-w-full text-base
>
<div mr-2 break-words overflow-hidden leading-4 h-full inline-block align-middle>
<div mr-2 break-words overflow-hidden leading-4 h-full inline-block align-middle flex flex-inline gap-1 items-center>
{{ item.description }}
<CommonTooltip v-if="item.info" :content="item.info">
<div i-ri:information-line />
</CommonTooltip>
</div>
<div>
<template
Expand Down
3 changes: 3 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@
"title": "Navigation"
}
},
"info": {
"disable_virtual_scrolling": "Disable the experimental \"Virtual Scrolling\" setting to use this shortcut."
},
"sequence_then": "then"
},
"menu": {
Expand Down

0 comments on commit aa171a8

Please sign in to comment.