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

SwiftKotlinApp changes text selection while writing #24

Closed
angelolloqui opened this issue Oct 19, 2017 · 1 comment
Closed

SwiftKotlinApp changes text selection while writing #24

angelolloqui opened this issue Oct 19, 2017 · 1 comment
Labels

Comments

@angelolloqui
Copy link
Owner

angelolloqui commented Oct 19, 2017

When using SwiftKotlinApp, if you type new text into the Swift text area input, the translator runs for every key pressed, formatting the written text, and hence making the text selection invalid. As a result, typing on the text area is unusable.

Possible solutions:

  1. Try to keep the focus on the proper place: This might be difficult considering that the format will be dynamically changed, so the position could not be identical after running.
  2. Do not run the translator until some time passes: Only when idle, run the translator. The problem will still happen but less frequently, probably making the solution "good enough" for usage
  3. Add a button to "format" the Swift code, and apply that as a manual action. Word highlighting will not be shown until the format happens.
@angelolloqui
Copy link
Owner Author

I have added a format button (option 3). Closing the issue for now, maybe reopen in future with other solution.

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

No branches or pull requests

1 participant