//========================================================================================================= bool CtrlrValueTreeEditorTree::keyPressed (const KeyPress &key) { if (getNumSelectedItems() == 1) { if (getSelectedItem(0)) { CtrlrValueTreeEditorItem *item = dynamic_cast<CtrlrValueTreeEditorItem*>(getSelectedItem(0)); if (item != nullptr) { item->keyPressed(key); } } } return (TreeView::keyPressed(key)); }