aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-12-21 21:08:16 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-12-21 21:08:16 +0800
commitc1f51e7dad493683cecba11abcd175ba6075e80f (patch)
tree97956de69f5bd55e795092c6d1a848ba1ce364f5
parentce934e0f6bd56288f13e10099abf7bdbc8bb50e0 (diff)
downloadgsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar
gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar.gz
gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar.bz2
gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar.lz
gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar.xz
gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar.zst
gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.zip
fixes #303876
svn path=/trunk/; revision=30921
-rw-r--r--widgets/table/ChangeLog8
-rw-r--r--widgets/table/e-cell-text.c4
2 files changed, 11 insertions, 1 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index b7f82c7f59..8efb26e2a1 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,11 @@
+2005-12-21 Chenthill Palanisamy <pchenthill@novell.com>
+
+ committing for Akira TAGOH <tagoh@gnome-db.org>
+
+ Fixes #303876
+ * table/e-cell-text.c: (ect_event): Check if its a keep press
+ event when the Return key is pressed.
+
2005-12-18 Tor Lillqvist <tml@novell.com>
* e-table-config.c (find_model_column_by_name): Use
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 899457e3dc..33ec7a6fa1 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -989,7 +989,9 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col,
}
if (edit_display) {
GdkEventKey key = event->key;
- if (key.keyval == GDK_KP_Enter || key.keyval == GDK_Return){
+ if (key.type == GDK_KEY_PRESS &&
+ (key.keyval == GDK_KP_Enter || key.keyval == GDK_Return)) {
+ /* stop editing when it's only GDK_KEY_PRESS event */
e_table_item_leave_edit_ (text_view->cell_view.e_table_item_view);
} else {
e_tep_event.key.time = key.time;