Skip to content

Commit

Permalink
Add code example
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 4, 2024
1 parent b8fb0d0 commit 0c7aeae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ import {
getHotKeyHint
} from 'keyux'

const macCompat = hotkeyMacCompat();
startKeyUX(window, [hotkeyKeyUX([macCompat])])
getHotKeyHint(window, 'ctrl+b', [macCompat])
const mac = hotkeyMacCompat();
startKeyUX(window, [hotkeyKeyUX([mac])])
getHotKeyHint(window, 'ctrl+b', [mac]) // Ctrl+B on Windows/Linux and ⌘+b on Mac
```

Hotkeys pressed with the <kbd>Meta</kbd> modifier will work as if
Expand Down

0 comments on commit 0c7aeae

Please sign in to comment.