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

Method ShouldConsumeKey

Source/MidiController.cpp:733–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733bool MidiController::ShouldConsumeKey(int key)
734{
735 return (gHoveredUIControl == nullptr || gHoveredUIControl->GetModuleParent() != this) &&
736 key != 32; //32 = space bar, which is used for panning the canvas
737}
738
739bool MidiController::CanTakeFocus()
740{

Callers 1

KeyPressedMethod · 0.45

Calls 1

GetModuleParentMethod · 0.80

Tested by

no test coverage detected