I have a problem with the Document.keyDownAction & keyUpAction...
I'm on a german Keyboard. I wanted to do automatic Syntax colorizing with an easy line, and it works (the colorizing) but when I write something it behaves strangely. This is my biggest problem:
// new document - normal behaviour
alt + n => ~ (highlighted and waits for the next key stroke to put the tilde on it)
alt + n ... space => ~
alt + n ... n => ñ
alt + n ... o => õ
// new document
Document.current.keyDownAction_({ Document.current.syntaxColorize })
// strange: doubles the tilde !!
alt + n ... space => ~~
alt + n ... n => ~ñ
alt + n ... o => ~õ
// new document
Document.current.keyUpAction_({ Document.current.syntaxColorize })
// won't be able to write õ, ñ... etc
alt + n => ~ (instantly, doesn't highlight and waits for the next key stroke)
I would like to know if there's another way to make syntax colorizing automatically without having this behaviour. I need both, the '~' and the 'ñ', so I would be very happy about solving this problem.
Thanks in advance.