-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathNcAppSettingsDialog.vue
More file actions
733 lines (671 loc) · 21 KB
/
NcAppSettingsDialog.vue
File metadata and controls
733 lines (671 loc) · 21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
<!--
- SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<script setup lang="ts">
import type { VNode } from 'vue'
import { toRef, useVModel } from '@vueuse/core'
import debounce from 'debounce'
import Vue, { computed, onBeforeUnmount, provide, ref, shallowRef } from 'vue'
import NcDialog from '../NcDialog/NcDialog.vue'
import NcVNodes from '../NcVNodes/NcVNodes.vue'
import NcAppSettingsDialogVersion from './NcAppSettingsDialogVersion.vue'
import { useIsMobile } from '../../composables/useIsMobile/index.ts'
import { t } from '../../l10n.js'
import { APP_SETTINGS_LEGACY_DESIGN_KEY, APP_SETTINGS_REGISTRATION_KEY } from './useAppSettingsDialog.ts'
export interface IAppSettingsSection {
id: string
name: string
order?: number
icon?: VNode[]
}
const props = withDefaults(defineProps<{
/**
* Determines the open / closed state of the modal
*/
open: boolean
/**
* Shows the navigation on desktop if true
*/
showNavigation?: boolean
/**
* Selector for the popover container
*/
container?: string
/**
* Name of the settings
*/
name?: string
/**
* Additional elements to add to the focus trap
*/
additionalTrapElements?: (string | HTMLElement)[]
/**
* Use legacy design without any requirements for the section content
*
* @deprecated The legacy design is disabled by default on v9 and will be removed in future releases
*/
legacy?: boolean
/**
* Do not add the application version at the bottom of the dialog
*/
noVersion?: boolean
}>(), {
container: 'body',
name: '',
additionalTrapElements: () => [],
legacy: true, // eslint-disable-line vue/no-boolean-default -- changed to false in v9
noVersion: false,
})
const emit = defineEmits<{
(e: 'update:open', v: boolean): void
}>()
const open = useVModel(props, 'open', emit, { passive: true })
provide(APP_SETTINGS_REGISTRATION_KEY, {
registerSection,
unregisterSection,
})
provide(APP_SETTINGS_LEGACY_DESIGN_KEY, toRef(() => props.legacy))
const settingsScroller = ref<HTMLDivElement>()
const isMobile = useIsMobile()
const selectedSection = ref('')
const linkClicked = ref(false)
const registeredSections = shallowRef<IAppSettingsSection[]>([])
const hasNavigation = computed(() => !isMobile.value && props.showNavigation)
/**
* Check if one or more navigation entries provide icons
*/
const hasNavigationIcons = computed(() => registeredSections.value.some(({ icon }) => !!icon))
/**
* Remove selected section once the user starts scrolling
*/
const unfocusNavigationItem = debounce(() => {
selectedSection.value = ''
if (document.activeElement?.className.includes('navigation-list__link')) {
(document.activeElement as HTMLElement).blur()
}
}, 300)
/**
* Fallback order map to keep track of section orders if not provided by child components
*/
const sectionsOrderMap = new Map()
onBeforeUnmount(() => {
sectionsOrderMap.clear()
})
/**
* Scrolls the content to the selected settings section.absolute
*
* @param item - the ID of the section
*/
function handleSettingsNavigationClick(item: string) {
linkClicked.value = true
document.getElementById('settings-section_' + item)!.scrollIntoView({
behavior: 'smooth',
inline: 'nearest',
})
selectedSection.value = item
setTimeout(() => {
linkClicked.value = false
}, 1000)
}
/**
* Reset the dialog state when closed to have a clean state if re-opened.
*
* @param isOpen - The new modal open state
*/
function handleCloseModal(isOpen: boolean) {
if (isOpen) {
return
}
open.value = false
// reset the scrolling state if the modal is just hidden
settingsScroller.value!.scrollTop = 0
}
/**
* When scrolled manually we remove the focus from the navigation item.
*/
function handleScroll() {
if (open.value && !linkClicked.value) {
unfocusNavigationItem()
}
}
/**
* Called when a new section is registered
*
* @param id - The section ID
* @param name - The section name
* @param order - Optional section order in navigation list
* @param icon - Optional icon component
*/
function registerSection(id: string, name: string, order?: number, icon?: VNode[]) {
// Check for the uniqueness of section names
if (registeredSections.value.some(({ id: otherId }) => id === otherId)) {
throw new Error(`Duplicate section id found: ${id}. Settings navigation sections must have unique section ids.`)
}
if (registeredSections.value.some(({ name: otherName }) => name === otherName)) {
Vue.util.warn(`Duplicate section name found: ${name}. Settings navigation sections must have unique section names.`)
}
// Ensure tab order is set
if (order !== undefined) {
sectionsOrderMap.set(id, order)
} else if (sectionsOrderMap.has(id)) {
order = sectionsOrderMap.get(id)
} else {
// Fallback to the closest positive number that isn't already taken
order = Math.max(0, ...sectionsOrderMap.values()) + 1
sectionsOrderMap.set(id, order)
}
// Sort sections by order in slots
registeredSections.value = [...registeredSections.value, { id, name, order, icon }]
.sort(({ order: orderA }, { order: orderB }) => {
return orderA! - orderB!
})
// If this is the first section registered, set it as selected
if (registeredSections.value.length === 1) {
selectedSection.value = id
}
}
/**
* Called when a section is unregistered to remove it from dialog
*
* @param id - The section ID
*/
function unregisterSection(id: string) {
registeredSections.value = registeredSections.value
.filter(({ id: otherId }) => id !== otherId)
// If the current section is unregistered, set the first section as selected
if (selectedSection.value === id) {
selectedSection.value = registeredSections.value[0]?.id ?? ''
}
}
</script>
<template>
<NcDialog
v-if="open"
class="app-settings"
:content-classes="['app-settings__content', { 'app-settings__non-legacy': !legacy }]"
navigation-classes="app-settings__navigation"
:additional-trap-elements="additionalTrapElements"
:container="container"
close-on-click-outside
:navigation-aria-label="t('Settings navigation')"
size="large"
:name="name"
@update:open="handleCloseModal">
<template v-if="hasNavigation" #navigation="{ isCollapsed }">
<ul
v-if="!isCollapsed"
class="navigation-list">
<li v-for="section in registeredSections" :key="section.id">
<a
:aria-current="`${section.id === selectedSection}`"
class="navigation-list__link"
:class="{
'navigation-list__link--active': section.id === selectedSection,
'navigation-list__link--icon': hasNavigationIcons,
}"
:href="`#settings-section_${section.id}`"
tabindex="0"
@click.prevent="handleSettingsNavigationClick(section.id)"
@keydown.enter="handleSettingsNavigationClick(section.id)">
<div v-if="hasNavigationIcons" class="navigation-list__link-icon">
<NcVNodes v-if="section.icon" :vnodes="section.icon" />
</div>
<span class="navigation-list__link-text">
{{ section.name }}
</span>
</a>
</li>
</ul>
</template>
<div ref="settingsScroller" @scroll="handleScroll">
<slot />
<NcAppSettingsDialogVersion v-if="!noVersion" />
</div>
</NcDialog>
</template>
<style lang="scss" scoped>
.app-settings {
:deep(.app-settings__navigation) {
min-width: 200px;
margin-right: calc(4 * var(--default-grid-baseline));
overflow-x: hidden;
overflow-y: auto;
position: relative;
}
:deep(.app-settings__content) {
box-sizing: border-box;
padding-inline: calc(4 * var(--default-grid-baseline));
&.app-settings__non-legacy * {
box-sizing: border-box;
}
}
}
.navigation-list {
height: 100%;
box-sizing: border-box;
overflow-y: auto;
padding: calc(3 * var(--default-grid-baseline));
&__link {
display: flex;
align-content: center;
font-size: 16px;
height: var(--default-clickable-area);
margin: 4px 0;
line-height: var(--default-clickable-area);
border-radius: var(--border-radius-element, var(--border-radius-pill));
font-weight: bold;
padding: 0 calc(4 * var(--default-grid-baseline));
cursor: pointer;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
background-color: transparent;
border: none;
&:hover,
&:focus {
background-color: var(--color-background-hover);
}
&--active {
background-color: var(--color-primary-element-light) !important;
}
&--icon {
padding-inline-start: calc(2 * var(--default-grid-baseline));
gap: var(--default-grid-baseline);
}
&-icon {
display: flex;
justify-content: center;
align-content: center;
width: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));
max-width: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));
}
}
}
@media only screen and (max-width: $breakpoint-small-mobile) {
.app-settings {
:deep .dialog__name {
padding-inline-start: 16px;
}
}
}
</style>
<docs>
Just nest the `AppSettingSections` component into `NcAppSettingsDialog`,
providing the section's name prop. You can put your settings within each
`NcAppSettingsSection` component.
```vue
<template>
<div>
<NcButton @click="settingsOpen = true">Show Settings</NcButton>
<NcAppSettingsDialog :open.sync="settingsOpen" :show-navigation="true" name="Application settings">
<NcAppSettingsSection id="asci-name-1" name="Example name 1">
Some example content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-2" name="Example name 2">
Some more content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-3" name="Example name 3">
Some example content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-4" name="Example name 4">
Some more content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-5" name="Example name 5">
Some example content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-6" name="Example name 6">
Some more content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-7" name="Example name 7">
Some example content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-8" name="Example name 8">
Some more content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-9" name="Example name 9">
Some more content
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-10" name="Example name 10">
Some more content
</NcAppSettingsSection>
</NcAppSettingsDialog>
</div>
</template>
<script>
export default {
data() {
return {
settingsOpen: false,
}
},
}
</script>
```
You can also add icons to the section navigation:
```vue
<template>
<div>
<NcButton @click="settingsOpen = true">Show Settings</NcButton>
<NcAppSettingsDialog :open.sync="settingsOpen" :show-navigation="true" name="Application settings">
<NcAppSettingsSection id="asci-name-1" name="Instagram">
<template #icon>
<Instagram :size="20" />
</template>
<p style="height: 100vh;">
Instagram setting
</p>
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-2" name="Mastodon">
<template #icon>
<Mastodon :size="20" />
</template>
<p style="height: 100vh;">
Mastodon setting
</p>
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-3" name="Twitch">
<template #icon>
<Twitch :size="20" />
</template>
<p style="height: 100vh;">
Twitch setting
</p>
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-4" name="Twitter">
<template #icon>
<Twitter :size="20" />
</template>
Twitter setting
</NcAppSettingsSection>
</NcAppSettingsDialog>
</div>
</template>
<script>
import Instagram from 'vue-material-design-icons/Instagram.vue'
import Mastodon from 'vue-material-design-icons/Mastodon.vue'
import Twitch from 'vue-material-design-icons/Twitch.vue'
import Twitter from 'vue-material-design-icons/Twitter.vue'
export default {
components: {
Instagram,
Mastodon,
Twitch,
Twitter,
},
data() {
return {
settingsOpen: false,
}
},
}
</script>
```
Sections order in navigation list is defined during initial rendering.
In case of dynamic/conditional sections rendering explicit `order` prop must be used for ordering.
```vue
<template>
<div>
<NcButton @click="settingsOpen = true">Show Settings</NcButton>
<NcAppSettingsDialog :open.sync="settingsOpen" :show-navigation="true" name="Application settings">
<NcAppSettingsSection id="asci-name-1" name="Example name 1" :order="1">
Some example content
<NcCheckboxRadioSwitch v-model="showExtraSections">Show section 3</NcCheckboxRadioSwitch>
</NcAppSettingsSection>
<NcAppSettingsSection id="asci-name-2" name="Example name 2" :order="2">
Some more content
</NcAppSettingsSection>
<template v-if="showExtraSections">
<NcAppSettingsSection id="asci-name-3" name="Example name 3" :order="3">
Some example content
</NcAppSettingsSection>
</template>
<NcAppSettingsSection id="asci-name-4" name="Example name 4" :order="4">
Some more content
</NcAppSettingsSection>
</NcAppSettingsDialog>
</div>
</template>
<script>
export default {
data() {
return {
settingsOpen: false,
showExtraSections: true,
}
},
}
</script>
```
### New design
```vue
<script>
import { mdiArrowRight, mdiPlus, mdiDomain, mdiDockLeft, mdiDockBottom, mdiListBoxOutline, mdiPencilOutline, mdiTrashCanOutline, mdiMedalOutline, mdiEmailOutline } from '@mdi/js'
export default {
setup() {
return { mdiArrowRight, mdiPlus, mdiDomain, mdiDockLeft, mdiDockBottom, mdiListBoxOutline, mdiPencilOutline, mdiTrashCanOutline, mdiMedalOutline, mdiEmailOutline }
},
data() {
return {
settingsOpen: false,
switchValue: true,
layout: 'vertical',
sorting: 'asc',
reply: 'top',
}
},
}
</script>
<template>
<div>
<NcButton @click="settingsOpen = true">Mail Settings</NcButton>
<NcAppSettingsDialog :open.sync="settingsOpen" :show-navigation="true" name="Application settings" :legacy="false">
<NcAppSettingsSection id="general" name="General">
<NcButton wide>Set as default mail app</NcButton>
<NcFormGroup label="Account settings">
<NcFormBox>
<NcFormBoxButton label="user@example.com">
<template #icon>
<NcIconSvgWrapper :path="mdiArrowRight" inline />
</template>
</NcFormBoxButton>
<NcFormBoxButton label="sales@example.com">
<template #icon>
<NcIconSvgWrapper :path="mdiArrowRight" inline />
</template>
</NcFormBoxButton>
<NcButton wide>
<template #icon>
<NcIconSvgWrapper :path="mdiPlus" />
</template>
Add mail account
</NcButton>
</NcFormBox>
</NcFormGroup>
</NcAppSettingsSection>
<NcAppSettingsSection id="appearance" name="Appearance">
<NcFormBox>
<NcFormBoxSwitch
v-model="switchValue"
label="Show all messages in thread"
description="When off, only the selected messages will be shown" />
</NcFormBox>
<NcRadioGroup v-model="layout" label="Layout">
<NcRadioGroupButton label="Vertical" value="vertical">
<template #icon>
<NcIconSvgWrapper :path="mdiDockLeft" />
</template>
</NcRadioGroupButton>
<NcRadioGroupButton label="Horizontal" value="horizontal">
<template #icon>
<NcIconSvgWrapper :path="mdiDockBottom" />
</template>
</NcRadioGroupButton>
<NcRadioGroupButton label="List" value="list">
<template #icon>
<NcIconSvgWrapper :path="mdiListBoxOutline" />
</template>
</NcRadioGroupButton>
</NcRadioGroup>
<NcRadioGroup v-model="sorting" label="Sorting">
<NcRadioGroupButton label="Newest first" value="asc" />
<NcRadioGroupButton label="Oldest first" value="desc" />
</NcRadioGroup>
</NcAppSettingsSection>
<NcAppSettingsSection id="messages" name="Messages">
<NcFormBox>
<NcFormBoxSwitch v-model="switchValue" label="Avatars from Gravatar and favicons" />
<NcFormBoxSwitch v-model="switchValue" label="Determine importance using machine learning" />
<NcFormBoxSwitch v-model="switchValue" label="Search the body of messages in Priority inbox" />
</NcFormBox>
<NcRadioGroup v-model="reply" label="Reply position">
<NcRadioGroupButton label="Top" value="top" />
<NcRadioGroupButton label="Bottom" value="bottom" />
</NcRadioGroup>
<NcFormGroup
label="Text blocks"
description="Reusable pieces of text that can be inserted in messages">
<NcListItem name="Title">
<template #subname>
Content
</template>
<template #extra-actions>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiPencilOutline" inline />
</NcButton>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiTrashCanOutline" inline />
</NcButton>
</template>
</NcListItem>
<NcListItem name="Reply">
<template #subname>
Thank you for contacting us!
</template>
<template #extra-actions>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiPencilOutline" inline />
</NcButton>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiTrashCanOutline" inline />
</NcButton>
</template>
</NcListItem>
</NcFormGroup>
</NcAppSettingsSection>
<NcAppSettingsSection id="privacy" name="Privacy">
<NcFormBox>
<NcFormBoxSwitch
v-model="switchValue"
label="Data collection"
description="Allow the app to collect and process data locally to adapt to your preferences" />
</NcFormBox>
<NcFormGroup label="Always show images from">
<NcListItem name="example.com">
<template #icon>
<NcIconSvgWrapper :path="mdiDomain" inline />
</template>
<template #extra-actions>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiTrashCanOutline" inline />
</NcButton>
</template>
</NcListItem>
<NcListItem name="example.net">
<template #icon>
<NcIconSvgWrapper :path="mdiDomain" inline />
</template>
<template #extra-actions>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiTrashCanOutline" inline />
</NcButton>
</template>
</NcListItem>
<NcListItem name="mail@example.org">
<template #icon>
<NcIconSvgWrapper :path="mdiEmailOutline" inline />
</template>
<template #extra-actions>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiTrashCanOutline" inline />
</NcButton>
</template>
</NcListItem>
</NcFormGroup>
</NcAppSettingsSection>
<NcAppSettingsSection id="security" name="Security">
<NcFormBox>
<NcFormBoxSwitch v-model="switchValue" label="Highlight external addresses" />
</NcFormBox>
<NcFormGroup label="Internal addresses">
<NcListItem name="example.com">
<template #icon>
<NcIconSvgWrapper :path="mdiDomain" inline />
</template>
<template #extra-actions>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiTrashCanOutline" inline />
</NcButton>
</template>
</NcListItem>
<NcListItem name="example.company@example.net">
<template #icon>
<NcIconSvgWrapper :path="mdiEmailOutline" inline />
</template>
<template #extra-actions>
<NcButton variant="tertiary" #icon>
<NcIconSvgWrapper :path="mdiTrashCanOutline" inline />
</NcButton>
</template>
</NcListItem>
<NcButton wide>Add internal address</NcButton>
</NcFormGroup>
<NcFormGroup label="S/MIME">
<NcButton wide>
<template #icon>
<NcIconSvgWrapper :path="mdiMedalOutline" inline />
</template>
Manage certificates
</NcButton>
</NcFormGroup>
<NcFormGroup label="Mailvelope">
<NcFormBox>
<NcFormBoxButton
label="Step 1"
description="Install the browser extension"
href="https://www.mailvelope.com/"
target="_blank"
inverted-accent />
<NcFormBoxButton
label="Step 2"
description="Enable the current domain"
inverted-accent>
<template #icon>
<NcIconSvgWrapper :path="mdiDomain" inline />
</template>
</NcFormBoxButton>
</NcFormBox>
</NcFormGroup>
</NcAppSettingsSection>
<NcAppSettingsSection id="about" name="About">
<NcFormGroup label="Acknowledgements" description="This application includes CKEditor, an open-source editor. Copyright (C) CKEditor contributors. Licensed under GPLv2." />
</NcAppSettingsSection>
<NcAppSettingsShortcutsSection>
<NcHotkeyList>
<NcHotkey label="Compose new message" hotkey="C" />
<NcHotkey label="Newer message" hotkey="ArrowLeft" />
<NcHotkey label="Older message" hotkey="ArrowRight" />
<NcHotkey label="Toggle star" hotkey="S" />
<NcHotkey label="Toggle unread" hotkey="U" />
<NcHotkey label="Archive" hotkey="A" />
<NcHotkey label="Delete" hotkey="Delete" />
<NcHotkey label="Search" hotkey="Control F" />
<NcHotkey label="Send" hotkey="Control Enter" />
<NcHotkey label="Refresh" hotkey="R" />
</NcHotkeyList>
</NcAppSettingsShortcutsSection>
</NcAppSettingsDialog>
</div>
</template>
```
</docs>