Skip to content

Translate keycodes of undefined Keys #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hekra01 opened this issue Jun 16, 2015 · 1 comment
Closed

Translate keycodes of undefined Keys #11

hekra01 opened this issue Jun 16, 2015 · 1 comment
Labels

Comments

@hekra01
Copy link
Contributor

hekra01 commented Jun 16, 2015

# key up
elem.send_keys(u'\ue013');  
# key undefined
elem.send_keys(u'\ue088')
  • Use a test app like this one
Rectangle {
    id: button
    objectName: "button"
    width: buttonText.width + 20
    height: 30

    Text {
        id: buttonText
        objectName: "buttonText"
    }

    Keys.onPressed: handleKeyPress(event);

    function handleKeyPress(event) {
        console.log("key press " + event.key);
    }
}
  • Observe in the test UI the KeyEvent received are:
# for key up
16777237
# for undefined key
57480
  • Expected
# for key up
16777237
# for undefined key
16777352

The offset to Qt key should be applied for undefined keys

@hekra01
Copy link
Contributor Author

hekra01 commented Jun 16, 2015

12f77b9

@hekra01 hekra01 closed this as completed Jun 17, 2015
@hekra01 hekra01 added the bug label Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant