diff options
author | Boby Wang <boby.wang@sun.com> | 2005-12-07 17:48:08 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-12-07 17:48:08 +0800 |
commit | 366fb95772625b6a681599f19c7ece313e6815bf (patch) | |
tree | 3c29efccadfe362123e2d3187d08cd6f52d0af7f /widgets/table/e-tree.c | |
parent | e9655751fb054f9b81d070b3d1264fa2906ed632 (diff) | |
download | gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar.gz gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.tar.zst gsoc2013-evolution-366fb95772625b6a681599f19c7ece313e6815bf.zip |
Fixes #322740. change the condition expression for GDK_RIGHT and GDK_LEFT.
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.
svn path=/trunk/; revision=30736
Diffstat (limited to 'widgets/table/e-tree.c')
-rw-r--r-- | widgets/table/e-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |