add basic support for modifier keys, fixes #479

This commit is contained in:
Helium314 2024-05-17 17:24:34 +02:00
parent 1a91ce5dd0
commit 71727de5a0
16 changed files with 158 additions and 72 deletions

View file

@ -591,7 +591,7 @@ class InputLogicTest {
private fun functionalKeyPress(keyCode: Int) {
require(keyCode < 0) { "not a functional key code: $keyCode" }
latinIME.onEvent(Event.createSoftwareKeypressEvent(Event.NOT_A_CODE_POINT, keyCode, Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, false))
latinIME.onEvent(Event.createSoftwareKeypressEvent(Event.NOT_A_CODE_POINT, keyCode, 0, Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, false))
handleMessages()
checkConnectionConsistency()
}