Twitter, , jQuery . JavaScript :
$(document).data('events').keydown;
$(document).data('events').keypress;
$(document).data('events').keyup;
With the help of basic trial and error, we can narrow the scope of the keystroke event by deleting these events and testing the missing functionality.
// Results in j/k keys no longer moving up/down
$(document).data('events').keypress = [];
This, of course, is a kind of approach based on hacking and cutting, but useful for narrowing things down.
source
share