ariya/phantomjs — pull request #331 by jimevans (2012-10-23 18:18:11+00:00)
Title: Implementing modifier keys in WebPage::sendEvent()

This pull request implements modifier keys in WebPage::SendEvent().

When keyboard events were implemented in PhantomJS, the use of modifier keys (Shift, Control, Alt, etc.) was deliberately left as a TODO item. This pull request implements that feature. It adds a new optional argument to WebPage::sendEvent() to accept the passing in of the modifier keys as defined in the Qt::KeyboardModifier enum. If the argument is not passed, or is not an int, the modifier key for the event is equivalent to Qt::NoModifier.

Fixes PhantomJS issue #835 (http://code.google.com/p/phantomjs/issues/detail?id=835).