Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with button press on softkey change #71

Conversation

martonmiklos
Copy link
Contributor

In the case if a softkey press triggered a softkey mask change then the button still held messages kept sending forever.

The reason behind this behavior is the following: the button receieved the mouseUp event, added the pressed state to the held buttons list.

The button got removed by the softkeymask change so the mouseRelease event was not called at all on the clicked softkey. However after the actual release of the mouse key the release event for the new button is sent.

The standard says that on softkey mask change the key should send a release event and ignore the key until it released.

The same applies to the buttons on the datamask (on datamask change) but I would like to address that in a separate PR.

src/ServerMainComponent.cpp Outdated Show resolved Hide resolved
@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch from 01db4df to 0d06dda Compare January 11, 2025 10:23
@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch 3 times, most recently from 448ded1 to babf7aa Compare January 11, 2025 19:33
@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch from babf7aa to 15cd3b6 Compare January 11, 2025 21:41
@martonmiklos martonmiklos deleted the send_button_and_key_release_on_mask_change branch January 11, 2025 22:11
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.

3 participants