KeyPressHandler (and most likely KeyDownHandler) does not behave
consistently among browsers. I've tried 1.3 release build and very recent
nightly build (on Dec 3, 2009). My observations are listed below.
Browsers tested: FF 3.5, IE7, Google Chrome 4, Safari 4
1. On FF 3.5:
Everything seems to work just fine. Behaviors are as expected.
2. On IE7
Problem 1: modifier keys are reported separately. That is, if you
press Ctrl+K, you'll get two events, first one for the Ctrl key, second one
for the K key. And if you press Ctrl + Shift + K, three events are fired.
Problem 2: when f1 key is pressed, same event gets fired twice. f2
~ f12 are OK.
3. On Chrome & Safari:
Problem 1: event.cancel() does not seem to work. That is, event
gets populated upto the browser. For example, Ctrl+A will do a "Select
All", Ctrl+D will do a 'Bookmark". Actually, it seems that the browser's
event handling always happens first.
Problem 2: when f1 is pressed the first time, it lanches the
browser's help window; when f1 is pressed again, same key pressed events
get fired.
Problem 3: it seems it's not possible to capture f5 key, it always
cause the page to reload. (again, it seems browser's event handling happens
first).
Please use the attached test case to reproduce the problems.
Original issue reported on code.google.com by James.z...@gmail.com on 8 Dec 2009 at 1:57
Original issue reported on code.google.com by
James.z...@gmail.com
on 8 Dec 2009 at 1:57Attachments: