History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-505
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Marcelo Farias
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Wrong simulation of Firefox key events

Created: 28/Jul/08 07:52 AM   Updated: 12/Aug/08 05:35 PM
Component/s: JS Runner
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Key events generated by triggerKeyEvent() function (htmlutils.js file) have always both keyCode and charCode properties assigned with the same value (the code of the desired key). But the actual behavior of Firefox in these circumtances is to assign only charCode for visible keys and only keyCode for special keys (esc, tab, f1, f2, ...).

File htmlutils.js, line 310/311:
   evt = document.createEvent('KeyEvents');
   evt.initKeyEvent(eventType, true, true, window, controlKeyDown, altKeyDown, shiftKeyDown, metaKeyDown, keycode, keycode);

The last two parameters passed to the function above should be mutually exclusive (at least for Firefox).


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.