domina icon indicating copy to clipboard operation
domina copied to clipboard

Key Codes not working properly on key events

Open Engelberg opened this issue 9 years ago • 0 comments

Consider the following code:

(listen! (sel "body") :keypress (fn [evt] (println "Keypress" (:keyCode evt)))) 

On Chrome, I see ASCII codes printed out properly for alphanumeric keys, but no event is received and thus nothing is printed for arrow keys. On Firefox, I see codes printed out properly for arrow keys, but all alphanumeric keys print a keyCode of 0.

Engelberg avatar May 23 '15 04:05 Engelberg