diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-27 22:50:04 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-27 22:50:04 +0800 |
commit | 86b1bd7f21c3024437375e656e75738423e85335 (patch) | |
tree | eb75adac6234d7e3262a5c10ba96b874eb2434f4 /widgets/e-table/e-table-item.c | |
parent | e52cd76bd60056abc4c142065ae0c8d34a169f58 (diff) | |
download | gsoc2013-evolution-86b1bd7f21c3024437375e656e75738423e85335.tar gsoc2013-evolution-86b1bd7f21c3024437375e656e75738423e85335.tar.gz gsoc2013-evolution-86b1bd7f21c3024437375e656e75738423e85335.tar.bz2 gsoc2013-evolution-86b1bd7f21c3024437375e656e75738423e85335.tar.lz gsoc2013-evolution-86b1bd7f21c3024437375e656e75738423e85335.tar.xz gsoc2013-evolution-86b1bd7f21c3024437375e656e75738423e85335.tar.zst gsoc2013-evolution-86b1bd7f21c3024437375e656e75738423e85335.zip |
Grab focus properly.
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_cursor_change): Grab focus properly.
* e-table-item.c, e-table-click-to-add.c: Fixed ETableClickToAdd
to handle carriage return. This still doesn't quite work right.
svn path=/trunk/; revision=4384
Diffstat (limited to 'widgets/e-table/e-table-item.c')
-rw-r--r-- | widgets/e-table/e-table-item.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c index e6305acbba..3a3f46a505 100644 --- a/widgets/e-table/e-table-item.c +++ b/widgets/e-table/e-table-item.c @@ -1554,6 +1554,19 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) return_val = FALSE; } break; + + case GDK_Return: + case GDK_KP_Enter: + case GDK_ISO_Enter: + case GDK_3270_Enter: + if (eti_editing (eti)){ + ecell_view = eti->cell_views [eti->editing_col]; + e_cell_event (ecell_view, e, view_to_model_col(eti, eti->editing_col), eti->editing_col, eti->editing_row); + } + return_val = FALSE; + gtk_signal_emit (GTK_OBJECT (eti), eti_signals [KEY_PRESS], + model_to_view_row(eti, cursor_row), cursor_col, e, &return_val); + break; default: if (!eti_editing (eti)){ @@ -1762,8 +1775,8 @@ eti_cursor_change (ETableSelectionModel *selection, int row, int col, ETableItem } eti_request_region_show (eti, view_col, view_row, view_col, view_row); + e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti)); if (e_table_model_is_cell_editable(selection->model, col, view_row)) { - e_canvas_item_grab_focus(GNOME_CANVAS_ITEM(eti)); e_table_item_enter_edit (eti, view_col, view_row); } gtk_signal_emit (GTK_OBJECT (eti), eti_signals [CURSOR_CHANGE], |