Hi Dirk,

Thanks for reaching out. As stated earlier, I want to know what exactly is 
causing this change in behaviour. I also want to know what is the expected 
behaviour in this case: should TAB key press trigger when the popupwindow is 
showing?

-- Abhinay
________________________________
From: Dirk Lemmermann <dlemmerm...@gmail.com>
Sent: Thursday, March 5, 2020 6:39 PM
To: Abhinay Agarwal <abhinay_agar...@live.com>
Cc: openjfx-dev@openjdk.java.net <openjfx-dev@openjdk.java.net>
Subject: Re: ComboBox keypress discrepancy

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_agar...@live.com<mailto:abhinay_agar...@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);
   }
}

Reply via email to