Hello swojtek,

this is not an easy task, but you are on the right track. Use the "input"
event instead of "keydown" and try to cover all use cases: the user can also
select the text and press a different key or delete the selection.

I would try to correct the value of the textfield after every "input" event
and then restore the cursor position.... Good luck.

Cheers,
Jonathan



-----
Jonathan Weiß
Framework Engineer

http://mysterycity.de/blog Blog  -  http://www.linkedin.com/in/jonathanrass
LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING 
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/textField-masked-input-tp5003496p5007927.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to