Closed
Description
- Use a test that sends both defined and undefined keys to WD (see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/value for the list of defined Selenium keys):
# 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