From 653cf8fa1fe9796b48988ac8fd726056a55c70f4 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 12 Sep 2013 17:12:45 +0100 Subject: Use a simulated keypress rather than a simulated mouseclick --- amiga/context_menu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/amiga/context_menu.c b/amiga/context_menu.c index 797f5810b..454fe266e 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -1220,12 +1220,7 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r switch(itemid) { case CMID_TREE_LAUNCH: - 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? - **/ + tree_keypress(tree, KEY_CR); break; case CMID_TREE_EDITFOLDER: -- cgit v1.2.3