Menu

#731 IE does not fire the onCtrlKey event correctly

3.0.0
closed-fixed
nobody
5
2007-12-07
2007-11-20
cztran
No

To test this go to the ZK Live Demo, go to the "Events and Scripts" Heading and the "onOk, onCancel and onCtrlKey" option. Then click on the "try me" button to edit the code and change the function key that is being captured from f2 to f3. Click "try me" again, click the "hello world" checkbox and then hit F3. If you are in Mozilla then you will receive a message telling you the keycode for F3. If you are in IE, then the Find window will open, and then a couple seconds later you will get the message telling you the keycode for F3.

Perform the same test with F5. Mozilla will correctly show you the keycode for F5. IE simply refreshes the page and you lose the onCtrlKey event.

So in IE it is running the default browser functionality associated with a keypress before firing the onCtrlKey event. In Mozilla it is correctly overriding the default browser fuinctionality.

Discussion

  • cztran

    cztran - 2007-11-22

    Logged In: YES
    user_id=1873789
    Originator: YES

    The JavaScript Bobo has written for his KeyListener component fixes this issue.

     
  • Jumper Chen

    Jumper Chen - 2007-12-07

    Logged In: YES
    user_id=1684431
    Originator: NO

    Fixed since 12/7.

     
  • Jumper Chen

    Jumper Chen - 2007-12-07
    • status: open --> closed-fixed
     

Log in to post a comment.