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

Open
wants to merge 3 commits 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.

src/ServerMainComponent.cpp Outdated Show resolved Hide resolved
@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
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