diff --git a/docs/article/other/tool.md b/docs/article/other/tool.md index bfc63be..4b0c15b 100644 --- a/docs/article/other/tool.md +++ b/docs/article/other/tool.md @@ -58,6 +58,23 @@ > 非常好看的手绘风格动画。主要针对文本 +## JS + +- [hotkeys-js](https://github.com/jaywcjlove/hotkeys-js) + + > 快速实现监听键盘按键事件、组合键事件 + + ```ts + useEffect(() => { + hotkeys('ctrl+j', e => { + e.preventDefault() + }) + hotkeys('escape', function (e) { + e.preventDefault() + }) + }, []) + ``` + ## Git - [gitmoji.dev](https://gitmoji.dev/) diff --git "a/docs/life/other/todolist/2023/12\346\234\210.md" "b/docs/life/other/todolist/2023/12\346\234\210.md" index dcd0f4b..448b415 100644 --- "a/docs/life/other/todolist/2023/12\346\234\210.md" +++ "b/docs/life/other/todolist/2023/12\346\234\210.md" @@ -16,3 +16,9 @@ head: ## 实现插件 snow-memo 快捷键启动的脚本 ctrl+J > 2023-12-05 新增 +> +> 2023-12-06 完成 + +## 后端收藏单词功能接口实现 + +> 2023-12-06 新增