11<script setup lang="ts">
22import { computed , inject , onBeforeUnmount , onMounted , onUpdated , provide , ref , watch } from ' vue' ;
3- import { createFilterWrapper , debounceFilter , useDocumentVisibility , usePreferredDark , useWindowScroll , useWindowSize } from ' @vueuse/core'
3+ import { createFilterWrapper , debounceFilter , onKeyStroke , useDocumentVisibility , usePreferredDark , useWindowScroll , useWindowSize } from ' @vueuse/core'
44
55import { type Config , type Post } from ' @/types' ;
66import { loadConfig } from ' @/config' ;
@@ -10,7 +10,7 @@ import { fetchPosts } from '@/sources'
1010import Card from ' ./components/Card.vue' ;
1111import ConfigModal from ' ./components/ConfigModal.vue' ;
1212import InfoBar from ' ./components/InfoBar.vue' ;
13- import { arrayUnique } from ' ./utils' ;
13+ import { whack } from ' ./utils' ;
1414
1515const config = ref <Config >();
1616
@@ -82,7 +82,9 @@ watch(() => config.value?.title, () => document.title = config.value?.title || f
8282// Watch for a update interval changes
8383watch (() => config .value ?.interval , () => restartUpdates ())
8484
85-
85+ onKeyStroke ([' w' ], (e ) => {
86+ whack (" #wall *" , 1 )
87+ })
8688
8789/**
8890 * Starts or restarts the update interval timer.
0 commit comments