Skip to content

Commit

Permalink
Remove workaround for VST2 uppercase keys, as it breaks some hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Mar 20, 2022
1 parent ddf878c commit a941917
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions distrho/src/DistrhoPluginVST2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,23 +359,10 @@ class UIVst
if (index > 0)
{
// keyboard events must always be lowercase
bool needsShiftRevert = false;
if (index >= 'A' && index <= 'Z')
{
index += 'a' - 'A'; // A-Z -> a-z

if ((fKeyboardModifiers & kModifierShift) == 0x0)
{
needsShiftRevert = true;
fKeyboardModifiers |= kModifierShift;
}
}

fUI.handlePluginKeyboardVST2(down, static_cast<uint>(index), fKeyboardModifiers);

if (needsShiftRevert)
fKeyboardModifiers &= ~kModifierShift;

return 1;
}

Expand Down

0 comments on commit a941917

Please sign in to comment.