=========================================================================================================
| 4 | |
| 5 | //========================================================================================================= |
| 6 | bool CtrlrValueTreeEditorTree::keyPressed (const KeyPress &key) |
| 7 | { |
| 8 | if (getNumSelectedItems() == 1) |
| 9 | { |
| 10 | if (getSelectedItem(0)) |
| 11 | { |
| 12 | CtrlrValueTreeEditorItem *item = dynamic_cast<CtrlrValueTreeEditorItem*>(getSelectedItem(0)); |
| 13 | |
| 14 | if (item != nullptr) |
| 15 | { |
| 16 | item->keyPressed(key); |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | return (TreeView::keyPressed(key)); |
| 22 | } |
| 23 | |
| 24 | //========================================================================================================= |
| 25 | CtrlrValueTreeEditorItem::CtrlrValueTreeEditorItem(CtrlrValueTreeEditorLookProvider &_provider, ValueTree _treeToEdit, const Identifier &_nameIdentifier) |
nothing calls this directly
no test coverage detected