diff options
author | Robin Gareus <robin@gareus.org> | 2017-06-02 18:21:31 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-06-02 18:21:31 +0200 |
commit | cc971b6d9b19c31305e9ea7142c76863d1442e99 (patch) | |
tree | a6192c1cab9f0565f80866f669d35afb8cfb71c4 /gtk2_ardour/sfdb_ui.cc | |
parent | 4b0e2ad6827821f7419bc65bb755d6292e5e332e (diff) |
Import Dialog is Window. Dialog Esc behavior needs to be emulated.
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index c1662515ce..bd64df19d7 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -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 () { |