Browse Source

Fix duplicated character input on VST host key up

pull/351/head
falkTX 3 years ago
parent
commit
cd2c8c223e
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      distrho/src/DistrhoUIInternal.hpp

+ 6
- 0
distrho/src/DistrhoUIInternal.hpp View File

@@ -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;


Loading…
Cancel
Save