void (ActionEvent e) { // if focus is on the popup: move from choices to history, and, // being already on history, up to text field. if (popup.isPopupFocused()) { if (!popup.selectUp(true)) { popup.setPopupFocused(false); } } }