jagdeepjain / sfapi

Automatically exported from code.google.com/p/sfapi
0 stars 0 forks source link

RightMouseDown event is not working #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Check MouseCommands.as line 84
2. Find  return String(child.dispatchEvent(new MouseEvent("rightMouseDown") ));

What is the expected output? What do you see instead?
return String(child.dispatchEvent(new MouseEvent(MouseEvent.RIGHT_MOUSE_DOWN, 
true, false, 0, 0, null, false, false, false, true )));

What version of the product are you using? On what operating system?

Please provide any additional information below.

Hey guys! 
I tried to use right mouse down function to call context menu on flex app and 
had no luck at all. Selenium logs event but nothing happens on app. Then I 
decided to check the sources and found that right mouse down even is called by 
passing the value "rightMouseDown" to MouseEvent() while all other mouse events 
are called by passing (for example) "MouseEvent.MOUSE_DOWN, true, false, 0, 0, 
null, false, false, false, true". So it seems that you should correct the call 
of right mouse down event. 

Original issue reported on code.google.com by kazimirc...@gmail.com on 11 Jun 2012 at 9:15