We forked experimental Mediawiki VisualEditor. This WYSIWYM editor work with a hidden textarea and a representation of the content in DOM. When you focus the view, the focus
Just found a workaround. By listening to keyup
event, dead keys returns a keyIdentifier
property set to Unidentified
.
So :
keyuphandler = function(e)
{
if (e.keyIdentifier === 'Unidentified')
{
return;
}
doSomething();
}
Do you get the character from the key down event or do you read it from the text area? I just tried this with an input field and it's value did not change on the first press of the ^ button. However, I am using windows. The last resort would obviously be to handle these modifying key presses differently. This might get somewhat complex if you aim to support key combinations like alt+654. I will try it again on my mac as soon as I get home after work.