miho / MonacoFX

JavaFX editor node based on the powerful Monaco editor that drives VS Code
MIT License
78 stars 25 forks source link

Editor does not return the right text. #7

Closed lnbmc closed 4 years ago

lnbmc commented 4 years ago

When i am typing in my textbox, when a key combination is pressed, it should execute the following code:

System.out.println(txtContent.getEditor().getDocument().getText());

(txtContent is the MonaxoFX)

What i type in the textbox is this: error1

But my console output is like this: error2

miho commented 4 years ago

Unfortunately, I can't reproduce this behavior. If you can't solve it, please share more details like OS, Java and JavaFX versions used to run the application. Additionally, some sample code based on the tutorial app would be great.

miho commented 4 years ago

Closed due to inactivity.