From eb2870eee64151f5778c06bf802b8e6bf1e5264c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 14 Nov 2011 13:44:01 +0000 Subject: [PATCH] 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 --- gtk2_ardour/audio_clock.cc | 5 ++++- libs/gtkmm2ext/cairocell.cc | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index aff72fbf6e..4c0c551c18 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -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); } - diff --git a/libs/gtkmm2ext/cairocell.cc b/libs/gtkmm2ext/cairocell.cc index 86dac26f2c..f20f537e1b 100644 --- a/libs/gtkmm2ext/cairocell.cc +++ b/libs/gtkmm2ext/cairocell.cc @@ -211,7 +211,6 @@ CairoEditableText::CairoEditableText (boost::shared_ptr fo set_flags (Gtk::CAN_FOCUS); set_can_default (true); - set_receives_default (true); } CairoEditableText::~CairoEditableText ()