Skip to content
Snippets Groups Projects
Commit a866d939 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #232 - open tag suggestions on textfield click

parent 8c793004
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ import de.deadlocker8.budgetmaster.logic.utils.Strings; ...@@ -12,6 +12,7 @@ import de.deadlocker8.budgetmaster.logic.utils.Strings;
import de.deadlocker8.budgetmasterclient.ui.controller.NewPaymentController; import de.deadlocker8.budgetmasterclient.ui.controller.NewPaymentController;
import fontAwesome.FontIcon; import fontAwesome.FontIcon;
import fontAwesome.FontIconType; import fontAwesome.FontIconType;
import javafx.event.EventHandler;
import javafx.geometry.Insets; import javafx.geometry.Insets;
import javafx.geometry.Pos; import javafx.geometry.Pos;
import javafx.scene.control.Alert.AlertType; import javafx.scene.control.Alert.AlertType;
...@@ -67,6 +68,11 @@ public class TagField extends VBox ...@@ -67,6 +68,11 @@ public class TagField extends VBox
textField.setText(" "); textField.setText(" ");
textField.setText(""); textField.setText("");
} }
});
textField.setOnMousePressed((event)->{
textField.setText(" ");
textField.setText("");
}); });
TextFields.bindAutoCompletion(textField, new Callback<AutoCompletionBinding.ISuggestionRequest, Collection<String>>() TextFields.bindAutoCompletion(textField, new Callback<AutoCompletionBinding.ISuggestionRequest, Collection<String>>()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment