commit cd2c8c223eb31aa0bffd16bf38557e419fd7e1e5
parent 86b8a102bb0ec78fbd072a01ceebe904d29283e7
Author: falkTX <falktx@falktx.com>
Date: Sun, 12 Dec 2021 19:56:20 +0000
Fix duplicated character input on VST host key up
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp
@@ -326,6 +326,9 @@ public:
const bool ret = ui->onKeyboard(ev);
+ if (! press)
+ return ret;
+
DGL_NAMESPACE::Widget::CharacterInputEvent cev;
cev.mod = mods;
cev.character = key;
@@ -348,6 +351,9 @@ public:
const bool ret = ui->onKeyboard(ev);
+ if (! press)
+ return ret;
+
DGL_NAMESPACE::Widget::CharacterInputEvent cev;
cev.mod = mods;
cev.keycode = keycode;