Add keyboard-shortcuts to Transport Window
This commit is contained in:
parent
1a602cbfa2
commit
a1a56fd1db
@ -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);
|
||||
}
|
||||
|
@ -36,6 +36,10 @@ public:
|
||||
transport_ctrl.set_session (s);
|
||||
}
|
||||
|
||||
protected:
|
||||
void on_unmap ();
|
||||
bool on_key_press_event (GdkEventKey*);
|
||||
|
||||
private:
|
||||
TransportControlUI transport_ctrl;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user