key-kill-mode: a page-mode for blocking keyup and keydown events
authorJohn Foerch <jjfoerch@earthlink.net>
Sat, 23 Mar 2013 23:19:14 +0000 (19:19 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Sat, 23 Mar 2013 23:19:14 +0000 (19:19 -0400)
commit0341e791c78653a2f5bbbff9a1dac04bf898dd65
tree4c18091969d8f9cef754ba855c6f8397d29d6dc4
parent9bedf9a5d32ab22f1209e900bd851aa0e71906fe
key-kill-mode: a page-mode for blocking keyup and keydown events

Key-kill mode is a generic page-mode that can be used on any site for
blocking keyup and keydown events.  To use it, load the module and add
tests, like this:

    require("key-kill");
    key_kill_mode.test.push(build_url_regexp($domain = "github"));
    key_kill_mode.test.push(/\/\/.*slashdot\.org\//);
modules/page-modes/key-kill.js [new file with mode: 0644]