Skip to content

Commit

Permalink
Merge pull request #1184 from nakker1218/fix/docs-isHotkeyPressed
Browse files Browse the repository at this point in the history
Fix: example code in is-hotkey-pressed docs
  • Loading branch information
JohannesKlauss authored Jul 1, 2024
2 parents f706f37 + 7334244 commit f2272e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion documentation/src/theme/ReactLiveScope/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import { useHotkeys, useRecordHotkeys } from 'react-hotkeys-hook'
import { isHotkeyPressed, useHotkeys, useRecordHotkeys } from 'react-hotkeys-hook'
// Add react-live imports you need here
const ReactLiveScope = {
React,
...React,
isHotkeyPressed,
useHotkeys,
useRecordHotkeys,
};
Expand Down

0 comments on commit f2272e2

Please sign in to comment.