I created a small demo html that can be run from the demo folder that demonstrates the problem. I would really appreciate any help in this case(workarounds are welcome!).

Best Regards,
alex.d
Thx for your patch Sebastian, but it's still not working. e.getData() gives me qx.ui.menu.MenuButton back and not an image i was clicking at. One of the possible reasons for this can be the fact that i'm still using revision 4659 - but i haven't seen any other changes in "Command interface" comparing to the head revision.

The only place where i can see what image i've clicked at is in the contextmenu-eventlistener function:

=======================**snip**=======================
.
.
.
image.setContextMenu(cmenu);
image.addEventListener('contextmenu', function(e){
this.debug("Target is: "+e.getTarget()); //gives me the right object back
    image.getContextMenu().show();            //show the menu
}, image);
=======================**snap**=======================
but not in the command. Is there any "elegant" way to provide this information to the command?

Your help is really appreciated,

alex.d

Title: qooxdoo » Demo

Testcase for the command problem. Please make a right-click on the image then choose "Show Target" in menu and see the debug output.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to