diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-24 04:50:17 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-24 04:50:17 +0800 |
commit | b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82 (patch) | |
tree | 2a82348242494975db683203a2a54fadc128157c /widgets/table | |
parent | b6f3f2287c8908e8bb6b44ae8c266ed7d07cd006 (diff) | |
download | gsoc2013-evolution-b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82.tar gsoc2013-evolution-b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82.tar.gz gsoc2013-evolution-b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82.tar.bz2 gsoc2013-evolution-b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82.tar.lz gsoc2013-evolution-b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82.tar.xz gsoc2013-evolution-b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82.tar.zst gsoc2013-evolution-b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82.zip |
(item_key_press): In the case of '-' and '=', check
that no non-Shift modifier is pressed.
svn path=/trunk/; revision=17556
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index dce60d441c..f3b21fff50 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -869,6 +869,9 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) case '=': 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)) + break; if (row != -1) { path = e_tree_table_adapter_node_at_row(et->priv->etta, row); if (path) @@ -879,6 +882,9 @@ item_key_press (ETableItem *eti, int row, int col, GdkEvent *event, ETree *et) case '-': 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)) + break; if (row != -1) { path = e_tree_table_adapter_node_at_row(et->priv->etta, row); if (path) |