Skip to content

Make sure Ctrl+Left Mouse on MacOS is consistent#5674

Merged
benfry merged 2 commits into
processing:masterfrom
JakubValtar:fix-ctrl-click
Jan 12, 2019
Merged

Make sure Ctrl+Left Mouse on MacOS is consistent#5674
benfry merged 2 commits into
processing:masterfrom
JakubValtar:fix-ctrl-click

Conversation

@JakubValtar

Copy link
Copy Markdown
Contributor

Make sure PRESS, DRAG and RELEASE report the same mouse button on MacOS.

  • If CTRL was pressed during Left PRESS, report Right Button until the button is released, regardless of whether CTRL is still down.
  • If CTRL was not pressed during Left PRESS, report Left Button until the button is released, regardless of CTRL state.

Fixes #5672

Make sure PRESS, DRAG and RELEASE report the same mouse button on MacOS.

- If CTRL was pressed during Left PRESS, report Right Button until the button is released, regardless of whether CTRL is still down.
- If CTRL was not pressed during Left PRESS, report Left Button until the button is released, regardless of CTRL state.

Fixes processing#5672
@JakubValtar

Copy link
Copy Markdown
Contributor Author

Looking at this code again, it might be a better idea to move this into PApplet to reduce code duplication - we already handle keyPressed there, this is very similar.

@JakubValtar

Copy link
Copy Markdown
Contributor Author

Ready for review and merge.

@benfry benfry merged commit 61fdb07 into processing:master Jan 12, 2019
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mouseReleased behaviour on OSX

3 participants