Skip to content

useKeyPress是否可以支持重复按一个按键N次然后再触发回调逻辑 #2286

Open
@LaxusT

Description

比如

useKeyPress(['s', 's', 's'], () => {
   setState(1);
});

连续按下三次“s”按键再执行setState(1)

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions