mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 00:43:18 +01:00
fix keyboard event handling for host-provided plugin GUIs
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7262 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b8f2b0c75c
commit
ae3c3a7691
1 changed files with 9 additions and 2 deletions
|
|
@ -324,7 +324,11 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event)
|
|||
{
|
||||
if (_keyboard_focused) {
|
||||
if (_pluginui) {
|
||||
_pluginui->forward_key_event (event);
|
||||
if (_pluginui->non_gtk_gui()) {
|
||||
_pluginui->forward_key_event (event);
|
||||
} else {
|
||||
return relay_key_press (event, this);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
|
|
@ -346,7 +350,10 @@ PluginUIWindow::on_key_release_event (GdkEventKey* event)
|
|||
{
|
||||
if (_keyboard_focused) {
|
||||
if (_pluginui) {
|
||||
_pluginui->forward_key_event (event);
|
||||
if (_pluginui->non_gtk_gui()) {
|
||||
_pluginui->forward_key_event (event);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue