I
I
ido012014-09-05 07:30:53
JavaScript
ido01, 2014-09-05 07:30:53

How to catch up, down press in firefox with javascript?

How to catch up, down press in firefox with javascript?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TekVanDo, 2014-09-05
@ido01

Just like any other key jsfiddle.net/8oaL8vs0/1 - you look at which key was pressed in the event object (key code Up - 38, Down - 40)

K
Konstantin Dovnar, 2014-09-05
@SolidlSnake

Please .
Arrow code:

Left = 37
Top = 38
Right = 39
Bottom = 40

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question