Skip to content

Triggering a custom key function requires the same code to be executed at the end #513

@saiwondMYsty

Description

@saiwondMYsty

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.

如果我设置了两种按键触发方式,分别是“up+left”和“up+right”,它们会分别执行不同的代码。
但成功触发上述两种按键触发方式后,最终会执行相同的代码,例如按下空白键。
这段相同的代码可以只写一次吗?如果可以应该写在哪里?
有人会问不写在“case”?因为我写了有几十个自定义触发键。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions