diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-12-21 21:08:16 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-12-21 21:08:16 +0800 |
commit | c1f51e7dad493683cecba11abcd175ba6075e80f (patch) | |
tree | 97956de69f5bd55e795092c6d1a848ba1ce364f5 /widgets/table/e-cell-text.c | |
parent | ce934e0f6bd56288f13e10099abf7bdbc8bb50e0 (diff) | |
download | gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar.gz gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.tar.zst gsoc2013-evolution-c1f51e7dad493683cecba11abcd175ba6075e80f.zip |
fixes #303876
svn path=/trunk/; revision=30921
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |