video-export dialog: allow keyboard navigation
This commit is contained in:
parent
933e9c2919
commit
15f57d01cf
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include "pbd/error.h"
|
||||
#include "pbd/convert.h"
|
||||
#include "gtkmm2ext/keyboard.h"
|
||||
#include "gtkmm2ext/utils.h"
|
||||
#include "ardour/session_directory.h"
|
||||
#include "ardour/profile.h"
|
||||
|
@ -359,6 +360,22 @@ ExportVideoDialog::on_show ()
|
|||
Dialog::on_show ();
|
||||
}
|
||||
|
||||
bool
|
||||
ExportVideoDialog::on_focus_in_event (GdkEventFocus *ev)
|
||||
{
|
||||
Dialog::on_focus_in_event (ev);
|
||||
Gtkmm2ext::Keyboard::magic_widget_grab_focus ();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ExportVideoDialog::on_focus_out_event (GdkEventFocus *ev)
|
||||
{
|
||||
Dialog::on_focus_out_event (ev);
|
||||
Gtkmm2ext::Keyboard::magic_widget_drop_focus ();
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
ExportVideoDialog::abort_clicked ()
|
||||
{
|
||||
|
|
|
@ -55,6 +55,9 @@ class ExportVideoDialog : public ArdourDialog , public PBD::ScopedConnectionList
|
|||
void encode_pass (int);
|
||||
void change_file_extension (std::string);
|
||||
|
||||
bool on_focus_in_event (GdkEventFocus*);
|
||||
bool on_focus_out_event (GdkEventFocus*);
|
||||
|
||||
void open_outfn_dialog ();
|
||||
void open_invid_dialog ();
|
||||
void scale_checkbox_toggled ();
|
||||
|
|
Loading…
Reference in New Issue