If you've ever used a textarea/contenteditable, read this.
poincare101.herokuapp.com
poincare101.herokuapp.com
$iframeEditor.keydown(function(event) { if (event.which == 9) { event.preventDefault(); iframeDoc.execCommand('insertHTML',true,' '); }});
I agree, not that hard to solve (obviously your mileage may vary as to whether you might want to insert spaces (as shown), the number of spaces, just ignore it, do something else, whatever). You might also need to add a little bit of extra event-handling code to make it work in IE -- I don't know. Fortunately I only needed to support WebKit for this project. :-)
I'm used to the tab key moving the focus to the next field. It would annoy me if on one website it didn't, I'm sure.
For things like forms, its fine.
It annoys me too, but there is a reason for it.