My favorites | Sign in
Project Home Downloads Issues
New issue   Search
  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, 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
Good catch!
Status: Accepted
Labels: Milestone-Release1.8 Module-WebPage
Nov 2, 2012
Project Member #3
Correcting keycodes sent for lowercase characters
Status: Fixed
Mar 15, 2013
Project Member #4
This issue has been moved to GitHub:
Sign in to add a comment

Powered by Google Project Hosting