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

Some keys can't be entered on the On-Screen Keyboard #403

Closed
processing-bot opened this issue Feb 11, 2022 · 1 comment
Closed

Some keys can't be entered on the On-Screen Keyboard #403

processing-bot opened this issue Feb 11, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@processing-bot
Copy link
Collaborator

Created by: TN8001

This was translated by a machine.

Description

Starting with Processing 4.0 Beta 2, some keys can't be entered with the on-screen keyboard.

Steps to Reproduce

Open On-Screen Keyboard (Ctrl + Windows + O)

I can enter it.
alphabet symbol numeric Tab Enter Space etc.

I can't enter it.
BS Del arrow keys Home PgUp etc.

Your Environment

  • Processing version: 4.0b2, 4.0b5
  • Operating System and OS version: Windows10

Possible Causes / Solutions

Since getModifiers() was changed to getModifiersEx() in #67, the BUTTON1_DOWN_MASK flag is included.

I don't think there is a combination with mouse buttons for now or probably in the future, so remove the mouse button mask flag?

int modifiers = evt.getModifiersEx();
for (int i = 0; i < MouseInfo.getNumberOfButtons(); i++) {
    modifiers &= ~InputEvent.getMaskForButton(i + 1);
}
@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant