Import Dialog is Window. Dialog Esc behavior needs to be emulated.

This commit is contained in:
Robin Gareus 2017-06-02 18:21:31 +02:00
parent 4b0e2ad682
commit cc971b6d9b
2 changed files with 11 additions and 1 deletions

View File

@ -833,6 +833,16 @@ SoundFileBrowser::on_show ()
start_metering ();
}
bool
SoundFileBrowser::on_key_press_event (GdkEventKey* ev)
{
if (ev->keyval == GDK_Escape) {
do_something (RESPONSE_CLOSE);
return true;
}
return ArdourWindow::on_key_press_event (ev);
}
void
SoundFileBrowser::clear_selection ()
{

View File

@ -252,8 +252,8 @@ class SoundFileBrowser : public ArdourWindow
virtual bool reset_options () { return true; }
protected:
void on_show();
bool on_key_press_event (GdkEventKey*);
virtual void do_something(int action);
};