title: JavaFx 2.2 editable ComboBox left arrow key
body: <p>Editable JavaFx ComboBoxes works well but the left-arrow key is interpreted as Shift-TAB.</p>
  
  <p><img src="https://i.stack.imgur.com/kJKIS.jpg" alt="enter image description here"></p>
  
  <p>As you can see the focus is set to the ComboBox and the insertion point is in the middle of its field. Pressing the left arrow key move the focus to the first control, the TextField on the left of the image when pressing right arrow key move the insertion one character right as expected like in any TextField.</p>
  
  <p><strong>How can I catch events to reproduce the behavior of a TextField in an editable ComboBox?</strong></p>
  
  <p>I've tried to catch key events via <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/Node.html#setOnKeyPressed%28javafx.event.EventHandler%29" rel="nofollow noreferrer">ComboBox.setOnKeyPressed()</a> and <a href="http://docs.oracle.com/javafx/2/api/javafx/event/Event.html#consume%28%29" rel="nofollow noreferrer">event.consume()</a> but without success.</p>
  
  <p>Here is a minimal program to reproduce this unexpected behavior:</p>
  
  <pre><code>@Override
  public void start( Stage stage ) {
     stage.setTitle( "Editable ComboBox and left-arrow key" );
  
     ComboBox&lt;String&gt; cmbBx = new ComboBox&lt;&gt;();
     cmbBx.getItems().addAll( "A", "B", "C", "D", "E" );
     cmbBx.setMinWidth( 150 );
     cmbBx.setEditable( true );
     cmbBx.setOnKeyPressed( new EventHandler&lt;KeyEvent&gt;(){
        @Override public void handle( KeyEvent event ) {
           System.err.println( event );
           event.consume(); }}); // Consuming left arrow key is inoperant
  
     GridPane grid = new GridPane();
     grid.setVgap( 4 );
     grid.setHgap( 4 );
     grid.setPadding( new Insets( 4, 4, 4, 4 ));
  
     grid.add( new Label( "TextField:" ), 0, 0 );
     grid.add( new TextField()          , 1, 0 );
     grid.add( new Label( "ComboBox:" ) , 2, 0 );
     grid.add( cmbBx                    , 3, 0 );
  
     stage.setScene( new Scene( grid ));
     stage.show();
  }
  </code></pre>