Use Session::session_directory to access the sound path of the session in Editor...
[ardour.git] / gtk2_ardour / keyboard.cc
index 517ef973d4cef5bc4930bb5b6d72b27b18ad3f2a..90fea321de89320a5500bcacbfa12c6662182088 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include "ardour_ui.h"
@@ -55,6 +54,25 @@ Keyboard* Keyboard::_the_keyboard = 0;
 
 GdkModifierType Keyboard::RelevantModifierKeyMask;
 
+bool Keyboard::_some_magic_widget_has_focus = false;
+
+void
+Keyboard::magic_widget_grab_focus () 
+{
+       _some_magic_widget_has_focus = true;
+}
+
+void
+Keyboard::magic_widget_drop_focus ()
+{
+       _some_magic_widget_has_focus = false;
+}
+
+bool
+Keyboard::some_magic_widget_has_focus ()
+{
+       return _some_magic_widget_has_focus;
+}
 
 Keyboard::Keyboard ()
 {
@@ -76,12 +94,6 @@ Keyboard::Keyboard ()
        }
        Meta = possible_meta[i];
 
-       if (Meta) {
-               cerr << "Using " << possible_meta[i] << " for Meta\n";
-       } else {
-               cerr << "NO Meta\n";
-       }
-
        snooper_id = gtk_key_snooper_install (_snooper, (gpointer) this);
 
        XMLNode* node = ARDOUR_UI::instance()->keyboard_settings();