npm install keyevent-g---
Keyevent component based with React
[![NPM version][npm-image]][npm-url]
[npm-image]: https://img.shields.io/npm/v/keyevent-g.svg
[npm-url]: https://www.npmjs.com/package/keyevent-g

online example: https://favori.gitee.io/gantd-landing (CodePen)

- Supports custom key combinations
- Supports focus state
``js
import React, { useState, useCallback } from 'react'
import { Modal, Button } from 'antd';
import withKeyevent from 'keyevent-g';
function BasicUse() {
const [visible, setVisible] = useState(false);
const handlerVisible = useCallback(() => {
setVisible(!visible)
},[visible])
return withKeyevent(
React.render(
``
- Create a Github issue for bug reports, feature requests, or questions
- Follow @GantFDT for announcements
- Add a ⭐️ star on GitHub to support the project❤️!
GantFDT
MIT