diff options
-rw-r--r-- | widgets/table/ChangeLog | 8 | ||||
-rw-r--r-- | widgets/table/e-cell-text.c | 4 |
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; |