Fix VST2 enter/return ambiguity -- thanks to falktx
This commit is contained in:
parent
f9557d0d04
commit
c9bc0ff578
@ -176,7 +176,9 @@ VSTPluginUI::dispatch_effeditkey (GdkEventKey* gdk_key)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* see https://github.com/DISTRHO/DPF/blob/master/distrho/src/DistrhoPluginVST.cpp */
|
/* see https://github.com/DISTRHO/DPF/blob/master/distrho/src/DistrhoPluginVST.cpp
|
||||||
|
* and https://github.com/steinbergmedia/vstgui/blob/develop/vstgui/lib/vstkeycode.h#L19
|
||||||
|
*/
|
||||||
int special_key = 0;
|
int special_key = 0;
|
||||||
int ascii_key = 0;
|
int ascii_key = 0;
|
||||||
|
|
||||||
@ -189,9 +191,11 @@ VSTPluginUI::dispatch_effeditkey (GdkEventKey* gdk_key)
|
|||||||
special_key = 2;
|
special_key = 2;
|
||||||
break;
|
break;
|
||||||
case GDK_Return:
|
case GDK_Return:
|
||||||
case GDK_KP_Enter:
|
|
||||||
special_key = 4;
|
special_key = 4;
|
||||||
break;
|
break;
|
||||||
|
case GDK_KP_Enter:
|
||||||
|
special_key = 19;
|
||||||
|
break;
|
||||||
case GDK_Escape:
|
case GDK_Escape:
|
||||||
special_key = 6;
|
special_key = 6;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user