Skip to content

Fix issues with button press on softkey change #71

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch 5 times, most recently 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
@martonmiklos martonmiklos restored the send_button_and_key_release_on_mask_change branch January 27, 2025 22:14
@martonmiklos martonmiklos reopened this Jan 27, 2025
@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch from e171cd4 to efd1094 Compare January 30, 2025 22:59
@martonmiklos martonmiklos marked this pull request as draft February 12, 2025 20:52
@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch from efd1094 to 9f19c8f Compare March 18, 2025 21:14
@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch 4 times, most recently from 0c2c15c to bee4e36 Compare April 16, 2025 20:49
@martonmiklos martonmiklos force-pushed the send_button_and_key_release_on_mask_change branch from 0110fe6 to de24346 Compare June 8, 2025 21:15
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