Title: `keyPressed` is `true` with no keys pressed after specific sequence of `SHIFT` and any letter key · Issue #779 · processing/processing4 · GitHub
Open Graph Title: `keyPressed` is `true` with no keys pressed after specific sequence of `SHIFT` and any letter key · Issue #779 · processing/processing4
X Title: `keyPressed` is `true` with no keys pressed after specific sequence of `SHIFT` and any letter key · Issue #779 · processing/processing4
Description: Created by: keppy442b Description keyPressed is true with no keys actively pressed after doing a specific sequence of key presses with SHIFT and a letter key. It also occurs with CTRL and a letter key. This is more easily reproduced with...
Open Graph Description: Created by: keppy442b Description keyPressed is true with no keys actively pressed after doing a specific sequence of key presses with SHIFT and a letter key. It also occurs with CTRL and a letter ...
X Description: Created by: keppy442b Description keyPressed is true with no keys actively pressed after doing a specific sequence of key presses with SHIFT and a letter key. It also occurs with CTRL and a letter ...
Opengraph URL: https://github.com/processing/processing4/issues/779
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`keyPressed` is `true` with no keys pressed after specific sequence of `SHIFT` and any letter key","articleBody":"*Created by: keppy442b*\n\n\u003c!--- ** For coding questions, ask the forum: https://discourse.processing.org ** --\u003e\r\n\u003c!--- ** This page is only for bugs in the software \u0026 feature requests ** --\u003e\r\n\r\n\u003c!--- ** If your code won't start, that's a better question for the forum. ** --\u003e\r\n\u003c!--- ** If Processing won't start, post on the forum where you can get help. ** --\u003e\r\n\r\n\u003c!--- ** Also be sure to read the troubleshooting page first: ** --\u003e\r\n\u003c!--- ** https://github.com/processing/processing/wiki/Troubleshooting ** --\u003e\r\n\r\n\u003c!--- ** Before posting, please search Issues for duplicates ** --\u003e \r\n\r\n## Description\r\n\u003c!--- Use a title that describes what is happening. --\u003e\r\n\u003c!--- Give a description of the proposed change. --\u003e\r\n`keyPressed` is `true` with no keys actively pressed after doing a specific sequence of key presses with `SHIFT` and a letter key. It also occurs with `CTRL` and a letter key. This is more easily reproduced with P2D, but it does occur with the default renderer as well.\r\n\r\n## Expected Behavior\r\n\u003c!--- Bug? Tell us what you were expecting. --\u003e\r\n\u003c!--- Improvement? Tell us how you’d like it to work. --\u003e\r\n`keyPressed` should be `false` when no keys are actively pressed.\r\n\r\n## Current Behavior\r\n\u003c!--- Explain the difference from current behavior. --\u003e\r\n\r\n\r\n## Steps to Reproduce\r\n\u003c!--- Provide an unambiguous set of steps to reproduce. --\u003e\r\n\u003c!--- Including code will make it more likely to be fixed. --\u003e\r\n1. Press and hold a letter key\r\n2. While still holding letter key, press and hold `SHIFT`\r\n3. While still holding `SHIFT`, release the letter key\r\n4. Release `SHIFT`\r\n\r\nPressing `CTRL` instead of `SHIFT` will also produce the behavior. It appears the only way to set `keyPressed` back to `false` is to press/release the specific letter key again. So if you did `SHIFT`+`a`, press and release `a` to set `keyPressed` back to the expected behavior. You can try to reproduce the behavior with this sketch:\r\n\r\n```\r\ncolor black = color(36,39,45);\r\ncolor green = color(141,187,110);\r\nvoid setup(){\r\n size(1600,900,P2D); \r\n}\r\n\r\nvoid draw(){\r\n if (keyPressed){\r\n background(green);\r\n } else{\r\n background(black);\r\n }\r\n}\r\n```\r\n\r\n## Your Environment\r\n\u003c!--- Include details about your environment. --\u003e\r\n\u003c!--- Thousands of people use Processing every day and may not have this issue, --\u003e \r\n\u003c!--- so this gives us clues about why you’re running into a problem. --\u003e\r\n* Processing version: 4.3\r\n* Operating System and OS version: Windows 10 Home 22H2 19045.3324","author":{"url":"https://github.com/processing-bot","@type":"Person","name":"processing-bot"},"datePublished":"2023-09-11T17:50:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/779/processing4/issues/779"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c7b37e6-e239-c248-1d02-3e808f4177e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1E6:15D295:41EE62:5C8504:696A6A62 |
| html-safe-nonce | 4ff91b11b9bc4d217ff3879868eadf1db61271676166c7e43c6aba81d4c97a00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUU2OjE1RDI5NTo0MUVFNjI6NUM4NTA0OjY5NkE2QTYyIiwidmlzaXRvcl9pZCI6IjQ2MzQyMzI4NTQ3NDMyNDc0NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 06e4403fdac18dc09e2079b9f7916eeea8a6565b0e68312fee8505dee0dff0ff |
| hovercard-subject-tag | issue:2472651505 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/processing4/779/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fdf8399693b5cc936531dfca921ec5356d3f0eddc040ec3df74f43e05027b627/processing/processing4/issues/779 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fdf8399693b5cc936531dfca921ec5356d3f0eddc040ec3df74f43e05027b627/processing/processing4/issues/779 |
| og:image:alt | Created by: keppy442b Description keyPressed is true with no keys actively pressed after doing a specific sequence of key presses with SHIFT and a letter key. It also occurs with CTRL and a letter ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | processing-bot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fea32d5b7276b841b7a803796d9715bc6cfb31ed549fdf9de2948ac25d12ba6 |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing4 git https://github.com/processing/processing4.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 844382769 |
| octolytics-dimension-repository_nwo | processing/processing4 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 844382769 |
| octolytics-dimension-repository_network_root_nwo | processing/processing4 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f2d9f6432a5a115ec709295ae70623f33bb80aee |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width