void (KeyEvent e) { mySearchField.processKeyEvent(e); if (e.isConsumed()) { updateLastPattern(); String s = mySearchField.getText(); Object element; int navKeyCode = getNavigationKeyCode(e); if (navKeyCode != 0) { element = findTargetElement(navKeyCode, s); if (myClearSearchOnNavigateNoMatch && element == null) { manageSearchPopup(null); element = findTargetElement(navKeyCode, ""); } } else { UIEventLogger.IncrementalSearchKeyTyped.log(myComponent.getClass()); element = findElement(s); } updateSelection(element, mySearchField.getText()); } }