React Keyevent
An easy-to-use keyboard event react component, Can achieve a variety of custom keyboard functions, Package size less than 3kb
Install
How to use
Props
property | required | type | defaultValue | description |
---|---|---|---|---|
events | true | { [key: string]: (e: KeyboardEvent) => void } | null | The binding keyboard events 绑定的键盘事件 |
needFocusing | false | boolean | false | 是否需要聚焦,若值为true,则需要聚焦Focus这个容器组件(点击) |