question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

alt key doesn't exist in macOS

See original GitHub issue

module: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:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MtnBikercommented, Oct 4, 2020

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.

0reactions
ahocevarcommented, Oct 4, 2020

@MtnBiker Please submit a pull request with a documentation improvement - it’s in your hands.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found