Title: Accelerator mistakenly works with 0 but not NUM0 · Issue #486 · scijava/scijava-common · GitHub
Open Graph Title: Accelerator mistakenly works with 0 but not NUM0 · Issue #486 · scijava/scijava-common
X Title: Accelerator mistakenly works with 0 but not NUM0 · Issue #486 · scijava/scijava-common
Description: Accelerator is tied to KeyCode. When writing accelerators with number (non-keypad) shortcuts we should be using NUM0, etc. However, in practice, these shortcuts do not actually work. But accelerators without the num do work, e.g. ctrl 0....
Open Graph Description: Accelerator is tied to KeyCode. When writing accelerators with number (non-keypad) shortcuts we should be using NUM0, etc. However, in practice, these shortcuts do not actually work. But accelerato...
X Description: Accelerator is tied to KeyCode. When writing accelerators with number (non-keypad) shortcuts we should be using NUM0, etc. However, in practice, these shortcuts do not actually work. But accelerato...
Opengraph URL: https://github.com/scijava/scijava-common/issues/486
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Accelerator mistakenly works with 0 but not NUM0","articleBody":"[Accelerator](https://github.com/scijava/scijava-common/blob/master/src/main/java/org/scijava/input/Accelerator.java) is tied to [KeyCode](https://github.com/scijava/scijava-common/blob/master/src/main/java/org/scijava/input/KeyCode.java). When writing accelerators with number (non-keypad) shortcuts we should be using `NUM0`, etc.\n\nHowever, in practice, these shortcuts do not actually work. But accelerators without the `num` *do* work, e.g. `ctrl 0`. However, they do not display correctly in the search and are not the intended behavior.\n\nSee https://github.com/scijava/scijava-search/issues/34 for some examples.\n\nMy guess is there is a problem in the event framework that is not translating `0` to `NUM0` when pressed?","author":{"url":"https://github.com/hinerm","@type":"Person","name":"hinerm"},"datePublished":"2025-11-04T18:40:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/486/scijava-common/issues/486"}
| 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:9e1a8fb4-0758-5b91-47bf-008235dbf1ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDA8:4CEB4:10A5DD4:16C07E9:6969F4AC |
| html-safe-nonce | 4a0d0e4aed23e97a717807434e697f0eeb7a44aec47761b87fc71475c2faee43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREE4OjRDRUI0OjEwQTVERDQ6MTZDMDdFOTo2OTY5RjRBQyIsInZpc2l0b3JfaWQiOiI0ODE5MzQ0ODExMzI5NDUxMTgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c1d5541353a8707785ff7164302133227affa8b202866ed8b8d3f46dceb23cca |
| hovercard-subject-tag | issue:3587800468 |
| 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/scijava/scijava-common/486/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb0dc720dbd63daae7cb00e024f28087a00fde213c69b2ab1eb4e82f64732b43/scijava/scijava-common/issues/486 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb0dc720dbd63daae7cb00e024f28087a00fde213c69b2ab1eb4e82f64732b43/scijava/scijava-common/issues/486 |
| og:image:alt | Accelerator is tied to KeyCode. When writing accelerators with number (non-keypad) shortcuts we should be using NUM0, etc. However, in practice, these shortcuts do not actually work. But accelerato... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hinerm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3594497 |
| octolytics-dimension-repository_nwo | scijava/scijava-common |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3594497 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-common |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width