My favorites | Sign in
Project Home Downloads Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 852: sendEvent() does not send proper keycodes for lowercase characters
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Nov 2012


Sign in to add a comment
 
Reported by james.h....@gmail.com, Nov 2, 2012
The current implementation of sendEvent for keystrokes sends the Unicode value of the character. For uppercase characters, this matches to the value of the character in the Qt::Key enum. For lowercase characters, this does not match. Thus, items like sending Control-x for cut or Control-v for paste do not work, as the keycodes are not what are expected.

The correct fix is to send the value of the uppercase character for the keycode, retaining the lowercase character in the "text" argument of the QKeyEvent constructor so that the proper actual character gets sent.
Nov 2, 2012
Project Member #2 ariya.hi...@gmail.com
Good catch!
Status: Accepted
Labels: Milestone-Release1.8 Module-WebPage
Nov 2, 2012
Project Member #3 ariya.hi...@gmail.com
Correcting keycodes sent for lowercase characters
https://github.com/ariya/phantomjs/commit/395af9cada
Status: Fixed
Mar 15, 2013
Project Member #4 james.m....@gmail.com
This issue has been moved to GitHub: https://github.com/ariya/phantomjs/issues/10852
Sign in to add a comment

Powered by Google Project Hosting