ConstThe test fails if the player or a built-in plugin already binds Ctrl+K
globally, before users ever see a conflict. It collects the default
bindings of every built-in command that is not limited to its panel's
focus (focus: null) and looks for the key the plugin wants; bindings
are canonical, so compare them as the player writes them.
import assert from "node:assert/strict";
import { BUILTIN_COMMANDS } from "@vestra-player/sdk/testing";
const taken = BUILTIN_COMMANDS.filter((command) => command.focus === null)
.flatMap((command) => command.bindings);
assert.ok(!taken.includes("Ctrl+K"));
The commands the player and its built-in plugins register when the player starts with nothing open, in menu order (commands outside the main menu last): their key paths, default bindings and owners. Use it to pick a menu place and default keys that do not collide with the player's (the user's own changes come on top; see Bindings). Menu items built from content (tracks, recent files, output devices) are not listed; their placeholders (
No Audio Tracks) are. Items that appear only in a passing state are not listed either: the video plugin's Restart (video.gpu-rendering.restart), in the Picture panel's Rendering section beside GPU Rendering (not in a menu), shown while a rendering choice waits for the next start.A snapshot of the player's built-in commands at this SDK release; the player may differ between SDK releases. The player's tests check that this list agrees with what the player and its built-in plugins register when the SDK is released, not with the player a user runs later.