aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree.c6
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)