Title: Typing some characters in P2D won't return what character was pressed with keyPressed in Processing 4.3 · Issue #824 · processing/processing4 · GitHub
Open Graph Title: Typing some characters in P2D won't return what character was pressed with keyPressed in Processing 4.3 · Issue #824 · processing/processing4
X Title: Typing some characters in P2D won't return what character was pressed with keyPressed in Processing 4.3 · Issue #824 · processing/processing4
Description: Created by: bugreporter0 Description Expected Behavior "< was pressed" should be written in the console Current Behavior keyPressed detects that a character was typed but not which one when "<" is typed Steps to Reproduce Works: void set...
Open Graph Description: Created by: bugreporter0 Description Expected Behavior "< was pressed" should be written in the console Current Behavior keyPressed detects that a character was typed but not which one when "<" is ...
X Description: Created by: bugreporter0 Description Expected Behavior "< was pressed" should be written in the console Current Behavior keyPressed detects that a character was typed but not which one...
Opengraph URL: https://github.com/processing/processing4/issues/824
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typing some characters in P2D won't return what character was pressed with keyPressed in Processing 4.3","articleBody":"*Created by: bugreporter0*\n\n\u003c!--- ** For coding questions, ask the forum: https://discourse.processing.org ** --\u003e\n\u003c!--- ** This page is only for bugs in the software \u0026 feature requests ** --\u003e\n\n\u003c!--- ** If your code won't start, that's a better question for the forum. ** --\u003e\n\u003c!--- ** If Processing won't start, post on the forum where you can get help. ** --\u003e\n\n\u003c!--- ** Also be sure to read the troubleshooting page first: ** --\u003e\n\u003c!--- ** https://github.com/processing/processing/wiki/Troubleshooting ** --\u003e\n\n\u003c!--- ** Before posting, please search Issues for duplicates ** --\u003e \n\n## Description\n\u003c!--- Use a title that describes what is happening. --\u003e\n\u003c!--- Give a description of the proposed change. --\u003e\n\n## Expected Behavior\n\u003c!--- Bug? Tell us what you were expecting. --\u003e\n\u003c!--- Improvement? Tell us how you’d like it to work. --\u003e\n\"\u003c was pressed\" should be written in the console\n\n## Current Behavior\n\u003c!--- Explain the difference from current behavior. --\u003e\nkeyPressed detects that a character was typed but not which one when \"\u003c\" is typed\n\n## Steps to Reproduce\n\u003c!--- Provide an unambiguous set of steps to reproduce. --\u003e\n\u003c!--- Including code will make it more likely to be fixed. --\u003e\nWorks:\n```processing\nvoid setup()\n{\n size(400, 400);\n}\n\nvoid draw()\n{\n}\n\nvoid keyPressed()\n{\n if(key == '\u003c')\n println(\"\u003c was pressed\");\n}\n```\nDoesn't work:\n```processing\nvoid setup()\n{\n size(400, 400, P2D);\n}\n\nvoid draw()\n{\n}\n\nvoid keyPressed()\n{\n if(key == '\u003c')\n println(\"\u003c was pressed\");\n}\n```\n\n## Your Environment\n\u003c!--- Include details about your environment. --\u003e\n\u003c!--- Thousands of people use Processing every day and may not have this issue, --\u003e \n\u003c!--- so this gives us clues about why you’re running into a problem. --\u003e\n* Processing version: 4.3\n* Operating System and OS version: both windows (10, 11) and Ubuntu 22.04\n* Other information:\n\n## Possible Causes / Solutions\n\u003c!--- Optionally, if you have a diagnosis or fix in mind, please share. --\u003e\nMaybe some characters have been forgotten in the keyPressed P2D API in Processing 4 and above because it worked in the last Processing 3 version, I've checked","author":{"url":"https://github.com/processing-bot","@type":"Person","name":"processing-bot"},"datePublished":"2024-02-26T02:13:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/824/processing4/issues/824"}
| 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:a47eac13-65c5-85c8-7cf3-0c7b579bedec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83B4:920F1:5545C2:79A883:696A5215 |
| html-safe-nonce | 388f9ae32251b0ecb19ba83f1fa3a6cd4841d9d8eecc6789bb8756e1dd2be3a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0I0OjkyMEYxOjU1NDVDMjo3OUE4ODM6Njk2QTUyMTUiLCJ2aXNpdG9yX2lkIjoiNDM5MTg2ODIwMjQxNzI3OTUwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 435f232c5ade79dbf2d9fe9f7e523a4e1843b6832dc309c2a00ae6f1d6765cc0 |
| hovercard-subject-tag | issue:2472655374 |
| 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/824/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe07ce1e15727fb42e31ca11c3ec393db08800738ce73c995fd9d022f3af749e/processing/processing4/issues/824 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe07ce1e15727fb42e31ca11c3ec393db08800738ce73c995fd9d022f3af749e/processing/processing4/issues/824 |
| og:image:alt | Created by: bugreporter0 Description Expected Behavior "< was pressed" should be written in the console Current Behavior keyPressed detects that a character was typed but not which one when "<" is ... |
| 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 | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width