Skip to content

Commit

Permalink
Merge pull request #346 from chrisosaurus/docs-api-space-next
Browse files Browse the repository at this point in the history
docs space: adding missing `.next()` call in space example.
  • Loading branch information
kasper authored Apr 9, 2024
2 parents dfbdfa3 + 1c40bdb commit b8f8f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/api/space.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See [Events](events#space) for a list of available events for Space.
// Move focused window to the next space and focus to the space (macOS 12.0+)
const space = Space.active();
const window = Window.focused();
space.moveWindows([window]);
space.next().moveWindows([window]);
window.focus();

// Move focused window to the next space and focus to the space (< macOS 12.0)
Expand Down

0 comments on commit b8f8f27

Please sign in to comment.