Skip to content

Translate keycodes of undefined Keys #11

Closed
@hekra01

Description

@hekra01
# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions