#include "ardour/tempo.h"
#include "ardour/types.h"
+#include "ardour_ui.h"
#include "audio_clock.h"
-#include "utils.h"
-#include "keyboard.h"
#include "gui_thread.h"
+#include "keyboard.h"
#include "ui_config.h"
-#include "i18n.h"
+#include "utils.h"
+
+#include "pbd/i18n.h"
using namespace ARDOUR;
using namespace ARDOUR_UI_UTILS;
Keyboard::magic_widget_drop_focus ();
if (has_focus()) {
-
/* move focus back to the default widget in the top level window */
-
- Widget* top = get_toplevel();
-
- if (top->is_toplevel ()) {
- Window* win = dynamic_cast<Window*> (top);
- win->grab_focus ();
- }
+ ARDOUR_UI::instance()->reset_focus (this);
}
}