global keyboard shortcuts react

Solutions on MaxInterview for global keyboard shortcuts react by the best coders in the world

showing results for - "global keyboard shortcuts react"
Bruno
12 Aug 2017
1import { HotKeys } from "react-hotkeys";import MyNode from "./MyNode";import React from 'react'const keyMap = {  SNAP_LEFT"command+left",  DELETE_NODE: ["del""backspace"]}; const App = () => {  return (    <HotKeys keyMap={keyMap}>      <div>        <MyNode />        <MyNode />      </div>    </HotKeys>  );}; export default App;