Ignore:
Timestamp:
Aug 21, 2009, 12:13:43 PM (15 years ago)
Author:
ecprice
Message:

Make ajaxterm only seize keypresses when focused.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/static/ajaxterm/ajaxterm.js

    r2435 r2451  
    273273                        opt_paste.attachEvent("onclick", do_paste);
    274274                }
    275                 document.onkeypress=keypress;
    276                 document.onkeydown=keydown;
     275                $('term').onkeypress=keypress;
     276                $('term').onkeydown=keydown;
    277277                force=true;
    278278                timeout=window.setTimeout(update,100);
Note: See TracChangeset for help on using the changeset viewer.