Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeArea not support Chinese #732

Closed
JamesChungZLL opened this issue Apr 18, 2018 · 6 comments
Closed

CodeArea not support Chinese #732

JamesChungZLL opened this issue Apr 18, 2018 · 6 comments

Comments

@JamesChungZLL
Copy link

JamesChungZLL commented Apr 18, 2018

Can't type Chinese for codeArea in Mac. Is there any way to fix it?
It is OK in Windows.
Thanks

@JordanMartinez
Copy link
Contributor

See #146

@JamesChungZLL
Copy link
Author

Yeah,fix the input problem with your help, thanks. However, could the getTextLocation function return the right location of the cursor?

@JordanMartinez
Copy link
Contributor

I'm not sure what offset represents (is it the character position or index in the text?), but you can try this method

@JamesChungZLL
Copy link
Author

JamesChungZLL commented Apr 20, 2018

It looks like that this method returns the specific character's location in the screen, not the cursor.

@JordanMartinez
Copy link
Contributor

By cursor, do you mean caret? That method allows one to get the bounds on screen for any character. So, if you pass in the caret's position into the arg and add one to it, that would get you what you need.
Still, I suppose Caret#getCaretBounds() works, too.

@JamesChungZLL
Copy link
Author

Yeah,well done.Caret#getCaretBounds()works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants