mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
Make keyboard shortcuts work in RTA Window
This commit is contained in:
parent
d67f3a349f
commit
a7db9ecc0f
2 changed files with 21 additions and 0 deletions
|
|
@ -136,6 +136,24 @@ RTAWindow::on_theme_changed ()
|
|||
_darea.queue_draw ();
|
||||
}
|
||||
|
||||
bool
|
||||
RTAWindow::on_key_press_event (GdkEventKey* ev)
|
||||
{
|
||||
if (gtk_window_propagate_key_event (GTK_WINDOW(gobj()), ev)) {
|
||||
return true;
|
||||
}
|
||||
return ARDOUR_UI_UTILS::relay_key_press (ev, this);
|
||||
}
|
||||
|
||||
bool
|
||||
RTAWindow::on_key_release_event (GdkEventKey* ev)
|
||||
{
|
||||
if (gtk_window_propagate_key_event (GTK_WINDOW(gobj()), ev)) {
|
||||
return true;
|
||||
}
|
||||
return ARDOUR_UI_UTILS::relay_key_press (ev, this);
|
||||
}
|
||||
|
||||
XMLNode&
|
||||
RTAWindow::get_state () const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,6 +44,9 @@ private:
|
|||
void on_map ();
|
||||
void on_unmap ();
|
||||
|
||||
bool on_key_press_event (GdkEventKey*);
|
||||
bool on_key_release_event (GdkEventKey*);
|
||||
|
||||
void session_going_away ();
|
||||
void update_title ();
|
||||
void on_theme_changed ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue