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: patch-diff.githubusercontent.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:e0a380be-af88-d0c7-8be9-fed346c47504 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE7C:3544D9:55F6A:76628:696E3FA9 |
| html-safe-nonce | ecc9f45d799c12a30a34f71d6505e489a37442f2ca5b00ca72a9e8aae7f374b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTdDOjM1NDREOTo1NUY2QTo3NjYyODo2OTZFM0ZBOSIsInZpc2l0b3JfaWQiOiI3NjQwMDE1MjU1Mjc4MzM3OTYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b4e557ebd38f18dd90f6edeef3990d4e21de1baa0445daac641611f83fef5a57 |
| 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 | abd163b7d9c46b4a930c1f194b3178a41170cabf658619a75407b1f9208b96e4 |
| 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 | 9072c2b7e26adf699c492532ab0d77c337ccb0ac |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width