getKeyCodeFromChar

getKeyCodeFromChar is a helper function which will return the keyCode value of the key char

How to use

import { Plugin } from'@root'

Plugin.getKeyCodeFromChar('Esc') // returns 27
Plugin.getKeyCodeFromChar('Space') // returns 32

Last updated