Use a simulated keypress rather than a simulated mouseclick

This commit is contained in:
Chris Young 2013-09-12 17:12:45 +01:00
parent 69b0350a3c
commit 653cf8fa1f
1 changed files with 1 additions and 6 deletions

View File

@ -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: