Skip to content

#265 fixing BCKeyboard key input#267

Open
circular17 wants to merge 5 commits into
dev-bgracontrolsfrom
quickfix
Open

#265 fixing BCKeyboard key input#267
circular17 wants to merge 5 commits into
dev-bgracontrolsfrom
quickfix

Conversation

@circular17

@circular17 circular17 commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

The idea is to prevent the BCKeyboard component to be focused and to send all different messages for the key inputs (KEYDOWN, KEYCHAR, Utf8KeyPress, KEYUP).

This continues the original pull request #266.

I've tested it on Windows and on WSL (gtk2).

On Windows, sending the KEYCHAR event automatically generates the Utf8KeyPress call, whereas on Linux with gtk2 I've added an explicit call to this method.

Comment thread bckeyboard.pas

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect on Linux.
Dont forget to do it for BCNumericKeyboard.pas too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that but it seems BCNumericKeyboard doesn't send inputs, there is rather a Change event, that is handled by the application. So nothing to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants