Skip to content

Commit

Permalink
fix: The meta key is the same as cmd on macOS and os key on Windows i…
Browse files Browse the repository at this point in the history
…n react-hotkeys-hook
  • Loading branch information
Yuddomack committed Oct 3, 2023
1 parent ce2b29a commit c4148b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/lib/use-puck-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export function usePuckHistory({
}) {
const { canForward, canRewind, rewind, forward, record } = useActionHistory();

useHotkeys("ctrl+z", rewind, [rewind]);
useHotkeys("ctrl+y", forward, [forward]);
useHotkeys("meta+z", rewind, { preventDefault: true });
useHotkeys("meta+y", forward, { preventDefault: true });

const [snapshot] = useDebounce(data, DEBOUNCE_TIME);

Expand Down

0 comments on commit c4148b4

Please sign in to comment.