controlsfx / controlsfx/controlsfx

How can I show popup of an AutoCompletationBinding

Open
#868 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
300
Avg merge
16d 17h
Merged PRs (30d)
1

Description

**[Original report](https://bitbucket.org/controlsfx/controlsfx/issue/677) by Hemã Vidal (Bitbucket: [hemavidal](https://bitbucket.org/hemavidal), GitHub: [hemavidal](https://github.com/hemavidal)).**

----------------------------------------

I want to show the autocomplete list with an KeyEvent.KEY_DOWN.

How can i do this?

Ex:

```
#!java

AutoCompletionBinding autoBind = TextFields.bindAutoCompletion(noteTextField, data);

autoBind.setHideOnEscape(true);

autoBind.getCompletionTarget().setOnKeyReleased(new EventHandler() {

@Override
public void handle(KeyEvent ke) {
if (ke.getCode().equals(KeyCode.DOWN)) {
System.out.println("KEY DOWN");
autoBind.showPopup(); //I WANT TO DO THIS
}
}


});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.