mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
[Summary] Allow all classes derived from WavesDialog redefine actions on Enter and Esc button pressed
[Reviewed] Nobody
This commit is contained in:
parent
302e2e7fab
commit
22e5ec45a6
2 changed files with 26 additions and 0 deletions
|
|
@ -107,9 +107,31 @@ WavesDialog::~WavesDialog ()
|
|||
WM::Manager::instance().remove (_proxy);
|
||||
}
|
||||
|
||||
void
|
||||
WavesDialog::on_esc_pressed ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
WavesDialog::on_enter_pressed ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool
|
||||
WavesDialog::on_key_press_event (GdkEventKey* ev)
|
||||
{
|
||||
switch (ev->keyval)
|
||||
{
|
||||
case GDK_Return:
|
||||
on_enter_pressed ();
|
||||
break;
|
||||
case GDK_Escape:
|
||||
on_esc_pressed ();
|
||||
break;
|
||||
}
|
||||
|
||||
return relay_key_press (ev, this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,6 +55,10 @@ class WavesDialog : public Gtk::Dialog, public ARDOUR::SessionHandlePtr, public
|
|||
void on_unmap ();
|
||||
void on_show ();
|
||||
|
||||
protected:
|
||||
virtual void on_esc_pressed ();
|
||||
virtual void on_enter_pressed ();
|
||||
|
||||
private:
|
||||
|
||||
WM::ProxyTemporary* _proxy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue