Skip to content

Commit

Permalink
docs space: adding missing .next() call in example.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisosaurus committed Mar 18, 2024
1 parent dfbdfa3 commit 1c40bdb
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 1c40bdb

Please sign in to comment.