How to know if .keyup() is a character key (jQuery)
$("input").keyup(function() {
if (key is a character) { //such as a b A b c 5 3 2 $ # ^ ! ^ * # ...etc not enter key or shift or Esc or space ...etc
/* Do stuff */
}
});
I'm using CGEventCreateKeyboardEvent and need to know what CGKeyCode values to use.
Specifically, I am after the key code for the Command key. The docs give examples for other keys: z is 6, shift is 56.
There must be a list of …
Where am I able to find a list of the hex keyboard scan codes for different keyboard layouts?
I'm sending the key codes over a (fake) USB HID keyboard with the bash command echo -ne followed by the escaped hex …