Bug Tracker

Changes between Initial Version and Version 1 of Ticket #4371


Ignore:
Timestamp:
Mar 18, 2009, 9:48:24 AM (14 years ago)
Author:
brandon
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4371 – Description

    initial v1  
    11While all browsers will handle this:
    2 
     2{{{
    33$(document).ready(function() {
    44        $(window).keydown(function() { alert('OK'); });
    55});
    6 
     6}}}
    77IE7 requires it to look like
    8 
     8{{{
    99$(document).ready(function() {
    1010        $(document).keydown(function() { alert('OK'); });
    1111});
     12}}}
    1213
    1314(notice 'document' instead of 'window' inside the first handler.) The same *probably* applies to 'keyup' and 'keypress'.