summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/context_menu.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/amiga/context_menu.c b/amiga/context_menu.c
index 27678dbc5..797f5810b 100644
--- a/amiga/context_menu.c
+++ b/amiga/context_menu.c
@@ -1220,7 +1220,12 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r
switch(itemid)
{
case CMID_TREE_LAUNCH:
- tree_launch_selected(tree, true);
+ tree_mouse_action(tree, BROWSER_MOUSE_DOUBLE_CLICK, 0, 0);
+ /**TODO: this needs fixing. ^^^^
+ (a) the mouse co-ordinates where the context menu was opened are not propagated and
+ (b) does a double-click here open ALL selected entries?
+ (c) what happens if the user right-clicked over a non-selected entry with others selected?
+ **/
break;
case CMID_TREE_EDITFOLDER:
@@ -1256,7 +1261,7 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r
break;
case CMID_TREE_DELETE:
- tree_delete_selected_nodes(tree, userdata);
+ tree_keypress(tree, KEY_DELETE_RIGHT);
break;
}
}