Browse Source

Remove workaround for VST2 uppercase keys, as it breaks some hosts

pull/375/head
falkTX 3 years ago
parent
commit
a941917f15
1 changed files with 0 additions and 13 deletions
  1. +0
    -13
      distrho/src/DistrhoPluginVST2.cpp

+ 0
- 13
distrho/src/DistrhoPluginVST2.cpp View File

@@ -359,23 +359,10 @@ public:
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;
}



Loading…
Cancel
Save