mark the step entry dialog as a dialog even though it is an ArdourWindow, to help...
[ardour.git] / gtk2_ardour / new_plugin_preset_dialog.cc
index e21ad9d18b15b5dd8d4840aa6374f16e12036cbe..828344b1bf888f824c814d13b38faa2e4c4f6fbb 100644 (file)
@@ -41,6 +41,8 @@ NewPluginPresetDialog::NewPluginPresetDialog (boost::shared_ptr<ARDOUR::Plugin>
 
        add_button (Stock::CANCEL, RESPONSE_CANCEL);
        _add = add_button (Stock::ADD, RESPONSE_ACCEPT);
+       set_default_response (RESPONSE_ACCEPT);
+       _name.set_activates_default(true);
 
        show_all ();
 
@@ -60,7 +62,7 @@ NewPluginPresetDialog::setup_sensitivity ()
                _add->set_sensitive (false);
                return;
        }
-               
+
        vector<ARDOUR::Plugin::PresetRecord>::const_iterator i = _presets.begin ();
        while (i != _presets.end() && i->label != _name.get_text()) {
                ++i;