Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
いくつかの動的入力でタブ キー押下イベントをキャプチャする必要がありますが、キー押下イベントを使用する通常の構文はキー コードをキャッチしていないようです。
$('input').live('keypress', function (e) { if ( e.which == 9 ) alert( 'Tab pressed' ); });
これは、どのキーを押しても、firebug でデバッガーを通過すると、キープレスとして 0 をキャッチしているようです。