diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp index 18562018..669d2427 100644 --- 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;