Isaac96 / interfascia

Automatically exported from code.google.com/p/interfascia
Other
0 stars 0 forks source link

Invisible chars when pressing special chars #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Keypresses like Ctrl + c, Delete etc

Nothing visible, because of the font. There actually is a square char. This
messes up startSelect, endSelect, cursorPos and deleting chars. 

Possible solution:
http://forum.java.sun.com/thread.jspa?threadID=426654&messageID=1899580
Use code from there, and make a function that skips all invalid chars when
adding chars

Original issue reported on code.google.com by sel...@gmail.com on 23 Aug 2006 at 9:57

GoogleCodeExporter commented 9 years ago
isValidUnicode() was added to fix this. If the character is a valid unicode 
glyph, it is added to the text field. 
Otherwise, it is ignored.

This isn't the most elegant solution, because valid unicode ranges are 
hard-coded, but it works.

Original comment by supersta...@gmail.com on 1 Sep 2006 at 4:29