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:
1 parent
d8b1c95402
commit
ded7c9a7b6
12 files changed
+685
-39
No files matched your search
@@ -28,7 +28,8 @@
|
||||
document.addEventListener("keydown", context, {once: true});
|
||||
document.addEventListener("pointerdown", unlock);
|
||||
document.addEventListener("keydown", keyboard);
|
||||
document.addEventListener("contextmenu", feedbackMenu);
|
||||
document.addEventListener("keydown", ctxKeydown);
|
||||
document.addEventListener("contextmenu", ctxContextMenu);
|
||||
document.addEventListener("selectionchange", feedbackButton);
|
||||
document.addEventListener("visibilitychange", refresh);
|
||||
window.addEventListener("focus", refresh);
|
||||
|
||||
Reference in new issue
Block a user