Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.11.2, 5.12.0 Beta 3
-
None
Description
QTest::asciiToKey(char ascii) does not have an entry for 0x0A (\n) and \x7F (delete).
We were using QTest::keyClick(widget, char) to simulate user inputs, but have manually added exceptions for these two characters to map to \r and to call QTest:keyClick(widget, QKey) with Qt::Key_Delete instead, respectively. If asciiToKey supported these two characters, that workaround wouldn't be necessary.
Similarly, keyToAscii (explicitly!) maps Key_Delete to 0, not to \x7F.