Replies: 1 comment
-
My suggestion would be to calculate this ahead of creating your bindings. const isMac = navigation.userAgent.toLowerCase().includes('mac')
const modKey = isMac ? 'meta' : 'control'
bindKeyCombo(`${modKey} > k`, () => console.log('do something awesome'))
bindKeyCombo(`${modKey} > j`, () => console.log('do something else awesome')) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does keystrokes support something similar to Mousetrap's 'mod', which is a generic helper for cross-platform shortcuts? In other words, is there a way to map 'control+s' on Windows and 'meta+s' on Mac to the same shortcut, such that 'control+s' on Mac does NOT trigger the shortcut?
Beta Was this translation helpful? Give feedback.
All reactions