Browse Source

Add a safety check

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 1 year ago
parent
commit
24024a194f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      plugins/ProM/DistrhoUIProM.cpp

+ 1
- 1
plugins/ProM/DistrhoUIProM.cpp View File

@@ -298,7 +298,7 @@ bool DistrhoUIProM::onKeyboard(const KeyboardEvent& ev)
{
pmKey = static_cast<projectMKeycode>(ev.key);

if (ev.mod & DGL_NAMESPACE::kModifierShift)
if (ev.key >= PROJECTM_K_A && ev.key <= PROJECTM_K_Z && (ev.mod & DGL_NAMESPACE::kModifierShift))
pmKey = static_cast<projectMKeycode>(pmKey + (PROJECTM_K_a - PROJECTM_K_A));
}
else


Loading…
Cancel
Save