Space Keycode
Ascii codes for the space key.
Space keycode. These methods allow you check input state using a descriptive action string e g. Fire or jump instead of the hardwre button number. Examples for both usage types can be found on the keycode page.
Is 61 in firefox but 187 in other browsers is 173 in firefox but 189 in other browsers important note. When a keydown keyup or keypress event occurs javascript records the key code of the key that was pressed or released. Ascii code for space.
Ascii codes for space. Keyboard code for the space key used in input getkeydown and input getkeyup. If you want to find out whether the alt ctrl meta or shift key was pressed when a key event occured use the altkey ctrlkey metakey or.
The following table shows the symbolic constant names hexadecimal values and mouse or keyboard equivalents for the virtual key codes used by the system. Press a key in the text box below to see the corresponding javascript key code. The codes are listed in numeric order.
Both the keycode and which property is provided for compatibility only. Is 59 in firefox but 186 in other browsers. Or scroll down to see the full list.
It s been deprecated for some time. It can also be used as a string for event keyboardevent by adding tostring. Jquery normalizes the which property of the eventobj so you can reliably use it to retrieve the key code.