Title: Shift+Arrow key events not detected in osx backend · Issue #9835 · matplotlib/matplotlib · GitHub
Open Graph Title: Shift+Arrow key events not detected in osx backend · Issue #9835 · matplotlib/matplotlib
X Title: Shift+Arrow key events not detected in osx backend · Issue #9835 · matplotlib/matplotlib
Description: Consider the following example code: import matplotlib.pyplot as plt fig = plt.figure() def on_key(event): print('you pressed', event.key, event.xdata, event.ydata) fig.canvas.mpl_connect('key_press_event', on_key) Now when I run this co...
Open Graph Description: Consider the following example code: import matplotlib.pyplot as plt fig = plt.figure() def on_key(event): print('you pressed', event.key, event.xdata, event.ydata) fig.canvas.mpl_connect('key_pres...
X Description: Consider the following example code: import matplotlib.pyplot as plt fig = plt.figure() def on_key(event): print('you pressed', event.key, event.xdata, event.ydata) fig.canvas.mpl_connect(&...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9835
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Shift+Arrow key events not detected in osx backend","articleBody":"Consider the following example code:\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nfig = plt.figure()\r\n\r\ndef on_key(event):\r\n print('you pressed', event.key, event.xdata, event.ydata)\r\n\r\nfig.canvas.mpl_connect('key_press_event', on_key)\r\n```\r\n\r\nNow when I run this code and press Shift+Left Arrow, the `qt5` backend correctly detects this event as `shift+left`. However, the `osx` backend (which AFAIK is the default backend on macOS) doesn't register the shift key at all, I only get `left`. Is it possible to fix this somehow?","author":{"url":"https://github.com/cbrnr","@type":"Person","name":"cbrnr"},"datePublished":"2017-11-22T15:23:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/9835/matplotlib/issues/9835"}
| 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:58d2a146-12a1-0359-0c0a-5585b01aeb98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2B6:2C0BEA:258FA5:313BC4:6A5189B6 |
| html-safe-nonce | 0ca162cf10172348f1b0dadbe01e1a21125627db1f12ad79be076a60c1ebf68e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkI2OjJDMEJFQToyNThGQTU6MzEzQkM0OjZBNTE4OUI2IiwidmlzaXRvcl9pZCI6Ijg4MjE3NDM5OTAzMTc2MTU1NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f21fe2289e63c0f8649c29feec66c73e0d6c06ccec28e2235ead547372d59b7e |
| hovercard-subject-tag | issue:276106716 |
| 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/matplotlib/matplotlib/9835/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0511a16b8d6750647fb6c775f8f7533cbab21e166030e84010d957b66027e05/matplotlib/matplotlib/issues/9835 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0511a16b8d6750647fb6c775f8f7533cbab21e166030e84010d957b66027e05/matplotlib/matplotlib/issues/9835 |
| og:image:alt | Consider the following example code: import matplotlib.pyplot as plt fig = plt.figure() def on_key(event): print('you pressed', event.key, event.xdata, event.ydata) fig.canvas.mpl_connect('key_pres... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cbrnr |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | cb77a7b8b06cd86c243be33fd8e7922d70a9d243 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width