要触发自定义按键函数,需要在结尾执行相同的代码

作者: saiwondMYsty创建于 2025年5月10日更新于 2025年5月10日

If I set two key triggering methods, 'up+left' and 'up+right', they will execute different codes respectively. But after successfully triggering the above two key methods, in the end, the same code will be executed, such as pressing the blank key. Can this same code be written only once? If so, where should it be written? Why don't I write it in the 'case'? Because I have dozens of custom trigger keys.

内容来源: jaywcjlove/hotkeys-js