kangax/fabric.js — pull request #1625 by vamo89 (2014-08-27 19:36:30+00:00)
Title: Use hiddenTextArea to generate inputs for IText - POC

I had problems with some inputs at iText that need two separated keystrokes, like discussed at https://github.com/kangax/fabric.js/issues/1175.
I'm not sure if I can solve the problem for Mac way of doing this, but for linux/windows I have a solution that may clean a lot of code and complexity from itext_key_behavior.mixin.js.

That's the idea: instead of listening some basic events like 'keypress' to handle input and mapping all user possible actions, we can let the textarea handle it and get it's input. In that way, the only thing that we've to care is keeping the caret at right position.

I made a POC to know if you have interest in changing the aproach. Chars like 'áéíâô' are now accepted. It works like an textarea. I didn't yet implement ctrl+left/right arrow, so in that case cursor become wrong-placed.

If you have interest, I can continue development focusing on chrome/linux, and I hope some help to fix the behavior for others browsers/OS.
If you don't, I'll just create a new fabric class at my code and use this aproach, because it's easier for latin languages inputs.