Override Chrome keyboard shortcuts in a user script Override Chrome keyboard shortcuts in a user script google-chrome google-chrome

Override Chrome keyboard shortcuts in a user script


Apparently, the Chrome UI triggers off of keydown instead of keypress (This Quirksmode article may suggest why -- keypress is supposed to fire when an actual character is being inserted).

So changing the appropriate line to:

$(document).on('keydown', '.wmd-input', function(e) {

Seems to work on both FF and Chrome.