Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Skip chordless menu items in the native chord collision check (#12063)

Daniel Hanc595f22ff8e3
diff --git a/studio/frontend/tests/desktop-app-menus.test.ts b/studio/frontend/tests/desktop-app-menus.test.ts
index e6879e146b1..6345c7c5e5d 100644
--- a/studio/frontend/tests/desktop-app-menus.test.ts
+++ b/studio/frontend/tests/desktop-app-menus.test.ts
@@ -298,8 +298,9 @@ test("menu chords follow the user's bindings and never steal a web shortcut's ch
// The list matches what the native menu actually holds: Tauri's default items plus our Quit.
assert.match(MAIN_RS, /MenuItemBuilder::with_id\(APP_QUIT_MENU_ID, "Quit Unsloth"\)\s*\.accelerator\("CmdOrCtrl\+Q"\)/);
const { MENU_CHORDS, NATIVE_MENU_CHORDS } = await import("../src/app/app-menu-chords.ts");
+ // An item with no chord (Go > Library) has nothing to collide with.
for (const { chord } of Object.values(MENU_CHORDS)) {
- assert.ok(!NATIVE_MENU_CHORDS.has(chord), `${chord} is not a native chord`);
+ if (chord) assert.ok(!NATIVE_MENU_CHORDS.has(chord), `${chord} is not a native chord`);
}
// A chord without Cmd or Ctrl never reaches the menu, which would take it from text fields.
assert.equal(