About 52 results
Open links in new tab
  1. KeyboardEvent.keyCode deprecated. What does this mean in practice?

    In practice, keyCode and charCode are inconsistent across platforms and even the same implementation on different operating systems or using different localizations.

  2. Where can I find a list of keyboard keycodes? - Stack Overflow

    Is there a place where I can find all the keycodes for keys on a keyboard? (For example, the key up may be #114) I can't seem to find one no matter what I search :( Thanks!

  3. keyCode values for numeric keypad? - Stack Overflow

    They (e.keyCode) are different for keyup and keydown because these events are related to the physical keys and those keys are different. If you use e.which from keypress, you'll get the same values for …

  4. javascript - keycode and charcode - Stack Overflow

    Sep 18, 2009 · In firefox for example, characters have > 0 charCode and 0 keyCode, and keys such as arrows & backspace have > 0 keyCode and 0 charCode. However, using this statement can be …

  5. Unity Input.GetKeyDown(KeyCode.Space) not detecting key Press

    Aug 29, 2020 · Unity Input.GetKeyDown (KeyCode.Space) not detecting key Press Asked 5 years, 7 months ago Modified 3 years, 2 months ago Viewed 25k times

  6. Execute JS code after pressing the spacebar - Stack Overflow

    Jun 24, 2014 · 136 There're couple of ways to do this. I am also including a deprecated one with keyCode (from the original answer) just in case (it still seems to work actually as of 2023).

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

    I thought this would be answered somewhere on Stack Overflow, but I can’t find it. If I’m listening for a keypress event, should I be using .keyCode or .which to determine if the Enter key was pre...

  8. keycode - How to differentiate between 'Enter' and 'Return' keys in ...

    Jun 22, 2017 · Some desktop apps treat the 'carriage return' key and the numpad's 'enter' key differently. I've noticed that these two keys generate the same keyCode (13) in Javascript (jQuery). …

  9. html - element onkeydown keycode javascript - Stack Overflow

    Nov 26, 2012 · element onkeydown keycode javascript Asked 16 years, 5 months ago Modified 13 years, 4 months ago Viewed 32k times

  10. javascript - Is it possible to simulate key press events ...

    The critical part of getting this to work is to realize that charCode, keyCode and which are all deprecated methods. Therefore if the code processing the key press event uses any of these three, then it'll …