DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit a941917f15be21e6bdce6793addec225537cccc5
parent ddf878c13a08dd212e3dcc3ce1bd708ea2373dbb
Author: falkTX <falktx@falktx.com>
Date:   Sun, 20 Mar 2022 14:53:13 +0000

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

Diffstat:
Mdistrho/src/DistrhoPluginVST2.cpp | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/distrho/src/DistrhoPluginVST2.cpp b/distrho/src/DistrhoPluginVST2.cpp @@ -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; }