feat(hub): scoped right-click context menu from the palette commands

Every palette item carries a scope (general, a tab, or an element kind); right-click and the Menu key or Shift+F10 open one menu with the element's items, then the tab's, then the general ones. Shift+right-click and text fields keep the browser menu; the diff feedback becomes one provider; any other key closes the menu instead of reaching the global shortcuts.

🎯 Fix: 85 %
💥 Break: 6 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 80
🚦 Gate: ⛔ fix 85 % < 90, break 6 % > 5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-15 08:16:42 +00:00
1 parent d8b1c95402
commit ded7c9a7b6
12 files changed
+685 -39

No files matched your search

+2 -1
View File
@@ -138,7 +138,7 @@
return button;
}
const MENUS = "details.menu, details.radio-station";
const MENUS = "details.menu, details.radio-station, .ctx-menu";
function closeMenus(keep) {
for (const menu of document.querySelectorAll(MENUS)) {
@@ -150,6 +150,7 @@
}
}
}
ctxDismiss(keep);
}
function openSheet(title, body, wide) {