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

[Help|Guide] AutocompletionEvent.AutoCompleted #10

Open
NiranjanShah opened this issue Feb 4, 2018 · 5 comments
Open

[Help|Guide] AutocompletionEvent.AutoCompleted #10

NiranjanShah opened this issue Feb 4, 2018 · 5 comments

Comments

@NiranjanShah
Copy link

AutoCompleted event is not fired

tfParent.addEventHandler(AutoCompletionEvent.AUTO_COMPLETED)
{
println("Coming here")
}

        tfParent.addEventFilter(AutoCompletionEvent.AUTO_COMPLETED)
        {
            println("Coming here")
        }

I believe this is the right way to trap the event, if it is correct then the AutoCompleted event of textfield is not getting fired.

Kindly guide in case the way its done is wrong

@edvin
Copy link
Owner

edvin commented Feb 4, 2018

What type is tfParent? Please supply a complete, runnable code example that showcases the issue.

@NiranjanShah
Copy link
Author

NiranjanShah commented Feb 4, 2018 via email

@edvin
Copy link
Owner

edvin commented Feb 4, 2018

You are listening for an AutoCompletionBinding from ControlsFX. It has no effect on the bindAutoCompletion function in TornadoFX-Controls :)

@NiranjanShah
Copy link
Author

NiranjanShah commented Feb 4, 2018 via email

@edvin
Copy link
Owner

edvin commented Feb 4, 2018

That would be described in the ControlsFX project, there is no difference between TornadoFX and JavaFX in that respect. If you want to listen to this event, use the corresponding component from ControlsFX instead.

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