Import Dialog is Window. Dialog Esc behavior needs to be emulated.
This commit is contained in:
parent
4b0e2ad682
commit
cc971b6d9b
@ -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 ()
|
||||
{
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user