From a941917f15be21e6bdce6793addec225537cccc5 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 20 Mar 2022 14:53:40 +0000 Subject: [PATCH] Remove workaround for VST2 uppercase keys, as it breaks some hosts --- distrho/src/DistrhoPluginVST2.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/distrho/src/DistrhoPluginVST2.cpp b/distrho/src/DistrhoPluginVST2.cpp index 95429c7c..6afa717f 100644 --- 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(index), fKeyboardModifiers); - - if (needsShiftRevert) - fKeyboardModifiers &= ~kModifierShift; - return 1; }