Skip to content

Commit dc7fe20

Browse files
polish(snippets): jump to editor from snippet name by tab (#352)
1 parent 54cd28a commit dc7fe20

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/renderer/components/snippets/SnippetHeader.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<AppActionButton
1414
v-if="snippetStore.currentLanguage === 'markdown'"
1515
v-tooltip="i18n.t('menu:markdown.presentationMode')"
16+
tabindex="-1"
1617
@click="onClickPresentationMode"
1718
>
1819
<UniconsMeetingBoard />
@@ -24,6 +25,7 @@
2425
? i18n.t('menu:editor.previewMarkdown')
2526
: i18n.t('hide') + ' ' + i18n.t('menu:editor.previewMarkdown')
2627
"
28+
tabindex="-1"
2729
@click="onClickMarkdownPreview"
2830
>
2931
<UniconsEye v-if="!snippetStore.isMarkdownPreview" />
@@ -35,6 +37,7 @@
3537
? i18n.t('menu:editor.previewScreenshot')
3638
: i18n.t('hide') + ' ' + i18n.t('menu:editor.previewScreenshot')
3739
"
40+
tabindex="-1"
3841
@click="onClickScreenshotPreview"
3942
>
4043
<UniconsCamera v-if="!snippetStore.isScreenshotPreview" />
@@ -46,19 +49,22 @@
4649
? i18n.t('menu:editor.previewCode')
4750
: i18n.t('hide') + ' ' + i18n.t('menu:editor.previewCode')
4851
"
52+
tabindex="-1"
4953
@click="onCodePreview"
5054
>
5155
<SvgArrowSlash v-if="snippetStore.isCodePreview" />
5256
<UniconsArrow v-else />
5357
</AppActionButton>
5458
<AppActionButton
5559
v-tooltip="i18n.t('addDescription')"
60+
tabindex="-1"
5661
@click="onAddDescription"
5762
>
5863
<UniconsText />
5964
</AppActionButton>
6065
<AppActionButton
6166
v-tooltip="i18n.t('newFragment')"
67+
tabindex="-1"
6268
@click="onAddNewFragment"
6369
>
6470
<UniconsPlus />
@@ -76,12 +82,7 @@
7682
</template>
7783

7884
<script setup lang="ts">
79-
import {
80-
onAddNewFragment,
81-
onAddDescription,
82-
onCopySnippet,
83-
emitter
84-
} from '@/composable'
85+
import { onAddNewFragment, onAddDescription, emitter } from '@/composable'
8586
import { useSnippetStore } from '@/store/snippets'
8687
import { useDebounceFn } from '@vueuse/core'
8788
import { computed, onUnmounted, ref } from 'vue'

src/renderer/components/ui/AppInputTags.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<div class="input-tags">
33
<VueTagsInput
44
v-model="tag"
5+
tabindex="-1"
56
:autocomplete-items="tags"
67
:tags="localValue"
78
:placeholder="i18n.t('addTag')"

0 commit comments

Comments
 (0)