We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
@changbinchen 这个是 hotkeys-js 基础封包,你可以基于它封包,放出 API,将 scope 放到全局 state 上 在根组件上使用 react-hotkeys,通过全局 state 来控制 scope
hotkeys-js
state
react-hotkeys
Sorry, something went wrong.
没理解,能简单写个例子吗,比如以下两个div,复用键盘,思路是什么呢
<div className="itemDiv" > <Hotkeys keyName="up,down,a,space" onKeyDown={this.onKeyDown.bind(this)} > <div className='demo1'></div> </Hotkeys> <Hotkeys keyName="up,down,a,space" onKeyDown={this.onKeyDown.bind(this)} > <div className='demo2'></div> </Hotkeys> </div>
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: