MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / keyPressed

Method keyPressed

Source/UIComponents/CtrlrValueTreeEditor.cpp:6–22  ·  view source on GitHub ↗

=========================================================================================================

Source from the content-addressed store, hash-verified

4
5//=========================================================================================================
6bool 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//=========================================================================================================
25CtrlrValueTreeEditorItem::CtrlrValueTreeEditorItem(CtrlrValueTreeEditorLookProvider &_provider, ValueTree _treeToEdit, const Identifier &_nameIdentifier)

Callers

nothing calls this directly

Calls 14

getOwnerViewFunction · 0.85
KeyPressFunction · 0.85
addTextEditorMethod · 0.80
addButtonMethod · 0.80
runModalLoopMethod · 0.80
getTextEditorContentsMethod · 0.80
triggerAsyncUpdateMethod · 0.80
keyPressedFunction · 0.50
canBeRenamedMethod · 0.45
toStringMethod · 0.45
getTypeMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected