blob: 6a31fd29707206bbc7a02567cc3f942731c332bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<script lang="ts">
import { getReaderContext } from '$lib/Reader.svelte';
import { accelerator } from '$lib/Shortcuts';
const reader = getReaderContext();
function onclick() {
reader.visible = false;
reader.sidebar = false;
}
</script>
<button
type="button"
class="btn-transparent"
title="Close reader"
aria-label="Close reader"
{onclick}
use:accelerator={'Escape'}
>
<span class="icon-lg icon-[material-symbols--close]"></span>
</button>
|