mirror of
https://github.com/gregor-tokarev/cubicdone.git
synced 2026-09-14 11:06:21 +05:00
Add shortcut for today button
This commit is contained in:
parent
0d2f6e207a
commit
342eab07ec
@ -97,6 +97,10 @@ onMounted(async () => {
|
||||
hotkeys(",", () => {
|
||||
onIndexArrows("decr");
|
||||
});
|
||||
|
||||
hotkeys("t", () => {
|
||||
onToday()
|
||||
})
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
@ -186,6 +190,7 @@ function onUpdate(_1: unknown, _2: unknown, _3: unknown, currIdx: number) {
|
||||
<div
|
||||
@click="onToday()"
|
||||
class="flex h-6 cursor-pointer items-center rounded bg-gray-100 px-2.5 text-[12px]"
|
||||
v-hint="'T'"
|
||||
>
|
||||
Today
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user