Remove LazMouseAndKeyInput dependency (GPL licence) and use LCLIntf (…#266
Conversation
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ctions/actions/checkout-5 Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ctions/actions/checkout-6 Bump actions/checkout from 5 to 6
|
Hello, Fred, please also remove the dependency from the package (the .lpk file). |
|
Seems a reasonable change to me. Note I changed the target branch to |
|
Hmm I tested it on Windows and it doesn't seem to send the letters to the Edit in the test program. Maybe we need as well to send the KEYPRESS event? |
|
What test program are you using? |
|
@circular17 : Yep our best friend gemini propose your solution too: procedure TBCKeyboard.PressVirtKey(p: PtrInt); // 1. Signal key is pressed // 2. IMPORTANT: Send the character message so text appears // 3. Signal key is released |
|
OK I did test test_bckeyboard on Linux with original unit BCKeyboard; who uses MouseAndKeyInput. And it does not work too. ;( But adding KeyInput.press: It works! Then doing the same but using LCLIntf vs MouseAndKeyInput This works (and gemini was not perfectly ok, LM_CHAR must be last): For PressShiftVirtKey, LM_CHAR is not needed, this is ok: |
|
Ooops, no it is not working using LCLIntf and LM_CHAR, sorry. I continue to investigate. |
|
No I am totally lost even using original code unit BCKeyboard; who uses MouseAndKeyInput It does NOT works. (I dont know why I was thinking it worked). |
|
I think that maybe the problem is because when you click on a button/key Edit1 loose focus and so the char is not added. But it is only a "maybe" so sorry for the lot of noise. |
|
I guess I found something that works on Windows and Linux with some tweaks. Let's continue the discussion in the new pull request: #267 |
…LGPL licence).