13
0

Add keyboard-shortcuts to Transport Window

This commit is contained in:
Robin Gareus 2017-12-23 00:59:01 +01:00
parent 1a602cbfa2
commit a1a56fd1db
2 changed files with 18 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include "ardour_ui.h"
#include "big_transport_window.h"
#include "utils.h"
#include "pbd/i18n.h"
@ -39,3 +40,16 @@ BigTransportWindow::BigTransportWindow ()
add (*vbox);
vbox->show_all();
}
void
BigTransportWindow::on_unmap ()
{
ArdourWindow::on_unmap ();
ARDOUR_UI::instance()->reset_focus (this);
}
bool
BigTransportWindow::on_key_press_event (GdkEventKey* ev)
{
return ARDOUR_UI_UTILS::relay_key_press (ev, this);
}

View File

@ -36,6 +36,10 @@ public:
transport_ctrl.set_session (s);
}
protected:
void on_unmap ();
bool on_key_press_event (GdkEventKey*);
private:
TransportControlUI transport_ctrl;
};