From b7f80576ce2c16c9a6cd56a1c8a8f9326a3d3a82 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 23 Jul 2002 20:50:17 +0000 Subject: (item_key_press): In the case of '-' and '=', check that no non-Shift modifier is pressed. svn path=/trunk/; revision=17556 --- widgets/table/e-tree.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'widgets') 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) -- cgit