Skip to content

Instantly share code, notes, and snippets.

@david0
Created April 19, 2018 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david0/36a6b3cf0d07dd1fe1296fcfbe8527ba to your computer and use it in GitHub Desktop.
Save david0/36a6b3cf0d07dd1fe1296fcfbe8527ba to your computer and use it in GitHub Desktop.

Tested with: https://jsfiddle.net/xpvt214o/160079/

method   browser        key             which   keyCode charCode
----------------------------------------------------------------
keydown  Chrome         l               76      76      0   
keydown  Chrome         numpad enter    13      13      0   
keydown  Firefox        l               76      76      0
keydown  Firefox        numpad enter    13      13      0
keydown  IE             l               76      76      0   
keydown  IE             numpad enter    13      13      0   
keypress Chrome         l               108     108     108 
keypress Chrome         numpad enter    13      13      13  
keypress Firefox        l               108     0       108 
keypress Firefox        numpad enter    13      13      0   
keypress IE             l               108     108     108 
keypress IE             numpad enter    13      13      13     

Chrome = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Firefox = Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 IE = Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; wbx 1.0.0; rv:11.0) like Gecko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment