-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle features visibility shortcut not working on OSx #8905
Comments
Unfortunately, I don't own a Mac to properly debug this. But I have a few questions: Do other shortcuts using |
Ok, I did a couple of tests:
|
Thanks. Can you try the version of iD on https://ideditor-release.netlify.app/ please? Could it be that you perhaps just haven't put the focus on the editor on osm.org (e.g. by clicking somewhere on the map after opening it)? Which version of Friefox/Chrome and MacOS are you using? |
Same results.
Editor has the focus...
Latest May you share a link to the file who handles this? Perhaps I can give you some clues |
Which are what versions, exactly? I'm asking because a user on the OSM discord chat reported that they were not able to reproduce this issue on MacOS. So we somehow need to narrow down what could be causing it. Btw: are you running any browser plugins or other system wide tool which might interfere with keyboard shortcuts?
Most of the relevant code would be in https://github.com/openstreetmap/iD/blob/develop/modules/util/keybinding.js |
Currently I'm running FF97, but I updated this morning, so in FF96 was happening also. In Chrome is 98.x. I'm using MacOS Monterey, btw. I ask a workmate to test it in his MacOS Big Sur (Chrome 98.x), and the error persists, so it's not related with my environment.
I disabled any extension I had. Still the same. |
I'd been digging on this: the source of the problem is the keyboard distribution (not the browser locale), in english, when you type So, the issue comes up because the Lines 56 to 80 in ad67f81
I actually don't understand what purpose has the first conditional block, as the better comparison possible stands at line 79, where it compares both IMO, I'd just replace the full bunch of code I beforementioned with a simple |
Good catch! 👍 The whole keyboard shortcut handling is unfortunately a bit more complex than one would think.
Interestingly, before #3572, it was basically implemented like this. But a I've fixed the issue here by relaxing the fallback requirements in bb3ab92 (and 22bd628). Footnotes
|
How to reproduce the issue?
⌥ + W doesn't work on MacOS to toggle the map data, just do nothing
Which iD Editor versions do you see the issue on?
Released version at openstreetmap.org/edit
Which browsers are you seeing this problem on?
Firefox, Chrome
The text was updated successfully, but these errors were encountered: