Allow a dialogue containing an audioclock to be

activated by a enter button press on the clock.


git-svn-id: svn://localhost/ardour2/branches/3.0@10580 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-11-14 13:44:01 +00:00
parent a45aad010f
commit eb2870eee6
2 changed files with 4 additions and 2 deletions

View file

@ -747,6 +747,10 @@ AudioClock::edit_next_field ()
bool
AudioClock::on_key_press_event (GdkEventKey* ev)
{
if (editing_field == 0) {
return false;
}
/* return true for keys that we MIGHT use
at release
*/
@ -2015,4 +2019,3 @@ AudioClock::set_off (bool yn)
set (_canonical_time, true);
}

View file

@ -211,7 +211,6 @@ CairoEditableText::CairoEditableText (boost::shared_ptr<CairoFontDescription> fo
set_flags (Gtk::CAN_FOCUS);
set_can_default (true);
set_receives_default (true);
}
CairoEditableText::~CairoEditableText ()