I m using Mootools, but a generic answer is fine.
I would like to remap the Enter key in a web application.
When they hit Enter it should react as though the Shift-Enter has been pressed.
I would just stop the enter event, and use exec.insertHTML
or its ilk, but FF s implementation is buggy on many elements.
I imagine that I could fire a key event, same as I could fire a click or other event:
click: $( myElement ).fireEvent( click , arg1);
keyevent: $( myElement ).fireEvent( keydown ???);
But I can t figure out how.