0

I need to understand if browser supports event.code before event happens, I couldn't find anything interesting about it, so maybe someone can help me with it

A D
  • 21
  • 5
  • I've had trouble before with [this](http://stackoverflow.com/q/17397814/31671) FWIW. – alex May 30 '16 at 13:58
  • possible duplicate of http://stackoverflow.com/questions/2877393/detecting-support-for-a-given-javascript-event – Matt Jun 08 '16 at 12:06

1 Answers1

0

I think I found solution for it, window.KeyboardEvent.prototype.code returns undefined if browser don't supports event.code and if it supports it returns error.

A D
  • 21
  • 5