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

Method ShouldConsumeKey

Source/KeyboardDisplay.cpp:302–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302bool KeyboardDisplay::ShouldConsumeKey(int key)
303{
304 if (mEnabled && mAllowHoverTypingInput)
305 {
306 key = KeyToLower(key);
307 QwertyToPitchResponse res = QwertyToPitchMapping::GetPitchForComputerKey(key);
308 if (res.mOctaveShift != 0)
309 return true;
310 if (res.mPitch != -1)
311 return true;
312 }
313 return false;
314}
315
316void KeyboardDisplay::OnKeyPressed(int key, bool isRepeat)
317{

Callers

nothing calls this directly

Calls 1

KeyToLowerFunction · 0.85

Tested by

no test coverage detected