MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / OnKeyPressed

Method OnKeyPressed

Source/LocationZoomer.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void LocationZoomer::OnKeyPressed(char key)
69{
70 if (key < CHAR_MAX && juce::CharacterFunctions::isDigit(key) && key != '0') // 0 is reserved
71 {
72 if (GetKeyModifiers() == kModifier_Command)
73 WriteCurrentLocation(key);
74 else if (GetKeyModifiers() == kModifier_Shift)
75 MoveToLocation(key);
76 }
77}
78
79void LocationZoomer::WriteCurrentLocation(char key)
80{

Callers

nothing calls this directly

Calls 1

GetKeyModifiersFunction · 0.85

Tested by

no test coverage detected