} else if (selectedItem != null) {
// Give the TTreeItem a chance to handle arrow keys
selectedItem.onKeypress(keypress);
} else {
// Pass other keys (tab etc.) on to TWidget's handler.
super.onKeypress(keypress);
} else if (selectedItem != null) {
// Give the TTreeItem a chance to handle arrow keys
selectedItem.onKeypress(keypress);
} else {
// Pass other keys (tab etc.) on to TWidget's handler.
super.onKeypress(keypress);