alt key doesn't exist in macOS
See original GitHub issuemodule:ol/events/condition.altKeyOnly. First no mention of what this means in macOS. Probably Cmd, but that should be mentioned.
Secondly: How write the condition? I’ve seen condition: ol.event.condition.altKeyOnly
but if you have
import {defaults} from 'ol/interaction';
import * as olEvents from 'ol/events';
How do you write the condition?
I tried
const dragRotateInteraction = new DragRotate({
condition: olEvents.altKeyOnly // no error but doesn't work, but no alt
})
map.addInteraction(dragRotateInteraction);
but doesn’t work with Cmd key. Maybe I’m missing the documentation for this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to use the Alt key on a Mac keyboard
The Alt key does exist on Mac and it's called Option key. Learn how to use the Alt ... The Mac keyboard doesn't...
Read more >What Is the Alt Key on Mac? A Complete Guide
Finding the Alt key on a Mac is pretty simple. Your computer has two of these buttons, both toward the bottom of your...
Read more >What is the alt key on a Mac?
The OPTION key is the “alt” key on a Mac. Most Macintosh keyboards have “alt” printed in the upper right corner above the...
Read more >alt key doesn't work (not imac specific)
alt key doesn't work (not imac specific). I know this isn't specific to the imac forum, but I'm not really sure where it...
Read more >OS X: Option is not ALT! Use Apple (Command) instead
The solution is for porters to just pretend that the option key doesn't exist. Please go through the OS X keymap and either...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Repeating myself: “First no mention of what this means in macOS. Probably Cmd, but that should be mentioned” and “And it activates with the macOS option key, not Cmd”.
Macs are common enough to warrant having their key strokes listed in the documentation.
@MtnBiker Please submit a pull request with a documentation improvement - it’s in your hands.