About 148,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. 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.

  4. 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 …

  5. keycode - JavaScript Key Codes - Stack Overflow

    Jun 25, 2011 · For example, if the . key is pressed, key is set to 190, and keychar gets set to the "3/4" character. Can anyone see how this was meant to work and/or why it doesn't? I don't know enough …

  6. 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 …

  7. 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 …

  8. numbers - Keycodes for the Numeric Keypad - Stack Overflow

    Feb 13, 2018 · The Javascript Keycodes differ from the ASCII codes (called Character Codes in javascript) sadly, because ASCII doesn't differentiate between a 1 from the top of the keyboard and a …

  9. javascript - How can I deal with different keyCodes on different ...

    Fixed by adding code 173 in the above JavaScript file, in addition to code 189. This makes me wonder what the keyboard is actually sending. The keydown code of 173 or 189 for pressing the hyphen key …

  10. 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 ...