2019-09-21 22:42:56 +02:00
|
|
|
<div class="shortcut-help-info {inDialog ? 'in-dialog' : ''}"
|
|
|
|
tabindex="{inDialog ? '0' : '-1'}"
|
|
|
|
>
|
2020-11-29 23:13:27 +01:00
|
|
|
<h2>{intl.global}</h2>
|
2019-01-20 01:40:31 +01:00
|
|
|
<div class="hotkey-group">
|
|
|
|
<ul>
|
2020-11-29 23:13:27 +01:00
|
|
|
{@html globalHotkeysText}
|
2019-01-20 01:40:31 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-11-29 23:13:27 +01:00
|
|
|
<h2>{intl.timeline}</h2>
|
2019-02-03 20:56:07 +01:00
|
|
|
<div class="hotkey-group">
|
|
|
|
<ul>
|
2020-11-29 23:13:27 +01:00
|
|
|
{@html intl.timelineHotkeys}
|
2019-02-03 20:56:07 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-11-29 23:13:27 +01:00
|
|
|
{#if !$leftRightChangesFocus}
|
|
|
|
<h2>{intl.media}</h2>
|
|
|
|
<div class="hotkey-group">
|
|
|
|
<ul>
|
|
|
|
{@html intl.mediaHotkeys}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2019-01-13 20:35:04 +01:00
|
|
|
</div>
|
|
|
|
<style>
|
2019-09-21 22:42:56 +02:00
|
|
|
.shortcut-help-info.in-dialog {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
.shortcut-help-info.in-dialog:not(:focus) {
|
2019-01-20 01:40:31 +01:00
|
|
|
scrollbar-width: none;
|
2019-02-09 21:01:29 +01:00
|
|
|
-ms-overflow-style: none;
|
2019-01-20 01:40:31 +01:00
|
|
|
}
|
2019-09-21 22:42:56 +02:00
|
|
|
.shortcut-help-info.in-dialog:not(:focus)::-webkit-scrollbar {
|
2019-01-20 01:40:31 +01:00
|
|
|
display: none;
|
|
|
|
}
|
2019-03-03 05:06:56 +01:00
|
|
|
:global(.shortcut-help-info li) {
|
2019-01-13 20:35:04 +01:00
|
|
|
list-style-type: none;
|
|
|
|
}
|
2019-03-03 05:06:56 +01:00
|
|
|
:global(.shortcut-help-info.in-dialog li) {
|
2019-01-13 20:35:04 +01:00
|
|
|
color: var(--muted-modal-text);
|
2019-01-20 01:40:31 +01:00
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
2019-03-03 05:06:56 +01:00
|
|
|
:global(.shortcut-help-info.in-dialog h2) {
|
2019-01-20 01:40:31 +01:00
|
|
|
color: var(--muted-modal-text);
|
|
|
|
}
|
2019-03-03 05:06:56 +01:00
|
|
|
:global(.shortcut-help-info.hotkey-group) {
|
2019-01-20 01:40:31 +01:00
|
|
|
margin: 0 0 10px 10px;
|
|
|
|
}
|
2019-03-03 05:06:56 +01:00
|
|
|
:global(.shortcut-help-info h2) {
|
2019-01-20 01:40:31 +01:00
|
|
|
margin: 10px 0;
|
2019-01-13 20:35:04 +01:00
|
|
|
}
|
2019-03-03 05:06:56 +01:00
|
|
|
:global(.shortcut-help-info kbd) {
|
2019-01-13 20:35:04 +01:00
|
|
|
color: #333;
|
|
|
|
display: inline-block;
|
|
|
|
border: 1px solid #333;
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 0.1em;
|
|
|
|
margin: 0.2em;
|
|
|
|
background-color: #dadada;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
2019-09-23 08:53:29 +02:00
|
|
|
import { store } from '../_store/store'
|
2020-11-29 23:13:27 +01:00
|
|
|
import { formatIntl } from '../_utils/formatIntl'
|
2019-09-23 08:53:29 +02:00
|
|
|
|
2019-01-13 20:35:04 +01:00
|
|
|
export default {
|
2019-09-23 08:53:29 +02:00
|
|
|
store: () => store,
|
2019-01-13 20:35:04 +01:00
|
|
|
data: () => ({
|
|
|
|
inDialog: false
|
2020-11-29 23:13:27 +01:00
|
|
|
}),
|
|
|
|
computed: {
|
|
|
|
globalHotkeysText: ({ $leftRightChangesFocus }) => (
|
|
|
|
formatIntl('intl.globalHotkeys', { leftRightChangesFocus: $leftRightChangesFocus })
|
|
|
|
)
|
|
|
|
}
|
2019-01-13 20:35:04 +01:00
|
|
|
}
|
|
|
|
</script>
|