@Override
    public void keyTyped(final KeyEvent event) {
      if (event.getKeyChar() == '\n') {
        if ("".equals(getText())) {
          for (final IViewSearchFieldListener listener : listeners) {
            listener.reset();
          }
          getEditor().getEditorComponent().setBackground(BACKGROUND_COLOR_SUCCESS);
        } else {
          search(event.getModifiersEx() == InputEvent.CTRL_DOWN_MASK);
        }
      }
    }
Editable combo box used for searching in UI tables.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/components/viewsearchfield/TableTextSearchComboBox.java