ComboBox keypress discrepancy
Dirk Lemmermann
dlemmermann at gmail.com
Thu Mar 5 13:09:13 UTC 2020
So what info do you need? What test do you want us to run?
I ran it on MacOS X with Java 14ea and I DO NOT see the „TAB“ output.
Dirk
> Am 05.03.2020 um 11:43 schrieb Abhinay Agarwal <abhinay_agarwal at live.com>:
>
> import javafx.application.Application;
> import javafx.scene.Scene;
> import javafx.scene.control.ComboBox;
> import javafx.scene.input.KeyEvent;
> import javafx.scene.layout.BorderPane;
> import javafx.stage.Stage;
>
> public class Main extends Application {
>
> @Override
> public void start(Stage primaryStage) {
> final ComboBox<String> stringComboBox = new ComboBox<>();
> stringComboBox.getItems().addAll("John", "Jacob", "Schmidt");
> stringComboBox.addEventHandler(KeyEvent.KEY_PRESSED, kp -> System.out.println(kp.getCode()));
>
> final Scene scene = new Scene(new BorderPane(stringComboBox), 300, 275);
> primaryStage.setScene(scene);
> primaryStage.show();
> }
>
> public static void main(String[] args) {
> launch(args);
> }
> }
More information about the openjfx-dev
mailing list