diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/table/e-tree.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 58b7b19302..cdc3165262 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,9 @@ +2005-12-07 Boby Wang <boby.wang@sun.com> + + Fixes #322740. + * e-tree.c: (item_key_press): change the condition + expression for GDK_RIGHT and GDK_LEFT. + 2005-12-06 Li Yuan <li.yuan@sun.com> * e-tree.c: (table_canvas_focus_event_cb): diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index dc72272dac..aa644f09ea 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -886,7 +886,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) case GDK_Right: case GDK_KP_Right: /* Only allow if the Shift modifier is used -- eg. Ctrl-Equal shouldn't be handled. */ - if (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK)) + if ((key->state == 0) || (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK))) break; if (row != -1) { path = e_tree_table_adapter_node_at_row(et->priv->etta, row); @@ -899,7 +899,7 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) case GDK_Left: case GDK_KP_Left: /* Only allow if the Shift modifier is used -- eg. Ctrl-Minus shouldn't be handled. */ - if (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK)) + if ((key->state == 0) || (key->state & ~(GDK_SHIFT_MASK | GDK_LOCK_MASK))) break; if (row != -1) { path = e_tree_table_adapter_node_at_row(et->priv->etta, row); |