0

I have a problem in chrome to know what is the keycode of ":", I found that keycode 59 work in Firefox but not in chrome.

Is there any difference between keycodes according to browsers ? and can you give me or where to find this keycode working in chrome ?

kach
  • 799
  • 3
  • 13
  • 23
  • Are you retrieving a keycode in a `keypress` or `keydown/up` handler? – Teemu Oct 21 '13 at 08:05
  • That's strange, it should be 58 in all browsers. See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Virtual_key_codes – Denys Séguret Oct 21 '13 at 08:06
  • I want to use it with keypress @Teemu No, it's 59 for me in Firefox :( – kach Oct 21 '13 at 08:14
  • `e.which` gives me `58` when hitting `:` (semicolon (`;`) seems to give `59`) in [FF24](http://jsfiddle.net/3eDsn/)...?! – Teemu Oct 21 '13 at 08:44
  • Yes, it works in this example but not for me. I have used this code for : http://stackoverflow.com/a/2403024/1295861 – kach Oct 21 '13 at 10:02

1 Answers1

0

Please check this one in chrome

This might help you.... Its showing like "186"

Marikkani Chelladurai
  • 1,430
  • 1
  • 13
  • 23
  • The problem is the button of ":" has 2 caracter ( ":" and "/" ), how I can determinate who's I've clicked ? ( I'm a windows client ) – kach Oct 21 '13 at 08:16