I see that the KeyBinding
interface has mac
, win
, and linux
options for keybindings. Is there a way to access the operating system type when writing a click handler with EditorView.domEventHandlers
? I’m essentially trying to add custom Mod-Click
behavior, but I can’t figure out how to differentiate between whether I need to check ctrlKey
vs metaKey
based on operating system when it’s a click event handler instead of a key binding.
Not in the library, but you can work from navigator.platform
pretty easily.
1 Like