About 144,000 results
Open links in new tab
  1. How to find the key code for a specific key - Stack Overflow

    14 What's the easiest way to find the keycode for a specific key press? Are there any good online tools that just capture any key event and show the code? I want to try and find the key codes for special …

  2. javascript - event.keyCode constants - Stack Overflow

    Sep 23, 2009 · The list of DOM_VK_ key codes has not seen further standardisation work and is unlikely to ever be made consistent: some of the key codes differ between platforms, and even between …

  3. javascript - keyCode values for numeric keypad? - Stack Overflow

    To add to some of the other answers, note that: keyup and keydown differ from keypress if you want to use String.fromCharCode() to get the actual digit from keyup, you'll need to first normalize the …

  4. What are the JavaScript KeyCodes? - Stack Overflow

    Apr 9, 2011 · What keycodes are available for JavaScript? If they're not the same for all browsers, please list the keycodes for each browser.

  5. Detecting arrow key presses in JavaScript - Stack Overflow

    Apr 8, 2011 · How do I detect when one of the arrow keys are pressed? I used this to find out: function checkKey(e) { var event = window.event ? window.event : e; console.log(event.keyCode) } Though it ...

  6. javascript - KeyboardEvent.keyCode deprecated. What does this mean …

    Notice that the key value is different from keyCode or which properties in that : it contains the name of the key not its code. If your program needs characters' codes then you can make use of charCodeAt().

  7. javascript - keycode and charcode - Stack Overflow

    Sep 18, 2009 · Handling key events consistently is not at all easy. Firstly, there are two different types of codes: keyboard codes (a number representing the key on the keyboard the user pressed) and …

  8. javascript - .keyCode vs. .which - Stack Overflow

    The Home key has a keyCode of 36 on my PC in Firefox, which is the character code for "$", which would make it impossible to distinguish between the user pressing the Home key and the user typing …

  9. Are Up, Down, Left, Right Arrow KeyCodes always the same?

    Yes, arrow key keycodes are always the same, regardless of the keyboard layout. I regularly use different keyboard layouts (Dvorak, Russian, Ukrainian, Hebrew, Spanish) and I have tried all of …

  10. Get Correct keyCode for keypad(numpad) keys - Stack Overflow

    I'm getting codes [96..105] by calling String.fromCharCode(event.keyCode) when pressing keys [0..9] (digits) on the keypad. Though these codes correspond to ...