S
S
Sergey Larin2018-04-23 14:35:32
Google Chrome
Sergey Larin, 2018-04-23 14:35:32

How to view keyboard events in chrome/firefox devtools?

In the project, by clicking on the escape, an event is called and the window is closed, but I can not find the code that is responsible for handling events from the keyboard. how to debug this event using chrome/firefox devtools?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-04-23
@dpmango

You can display the keyCode from pressing
And then, through the search, find the desired button code

$(document).on('keyup', function(e){
  console.log(e.keyCode);
})

Or if you know the right one - https://gist.github.com/tylerbuchea/8011573
escape is 27

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question