@a83/orbiter-admin 0.3.36 → 0.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/xfce.js +11 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a83/orbiter-admin",
3
- "version": "0.3.36",
3
+ "version": "0.3.37",
4
4
  "description": "Standalone admin server for Orbiter CMS",
5
5
  "type": "module",
6
6
  "main": "./src/server.js",
package/public/xfce.js CHANGED
@@ -1095,14 +1095,21 @@
1095
1095
 
1096
1096
  // ── Keyboard shortcuts ────────────────────────────────────────────────
1097
1097
  function bindKeys() {
1098
+ // Capture-phase ⌘K: fires before admin-utils.js bubble-phase listener, stops it
1098
1099
  document.addEventListener('keydown', function (e) {
1099
- var mod = e.metaKey || e.ctrlKey;
1100
-
1101
- // ⌘K — command palette
1102
- if (mod && !e.shiftKey && (e.key === 'k' || e.key === 'K')) {
1100
+ if ((e.metaKey || e.ctrlKey) && !e.shiftKey && (e.key === 'k' || e.key === 'K')) {
1103
1101
  e.preventDefault();
1102
+ e.stopImmediatePropagation();
1104
1103
  if (palette && palette.classList.contains('open')) closePalette();
1105
1104
  else openPalette();
1105
+ }
1106
+ }, true);
1107
+
1108
+ document.addEventListener('keydown', function (e) {
1109
+ var mod = e.metaKey || e.ctrlKey;
1110
+
1111
+ // ⌘K handled above in capture phase
1112
+ if (mod && !e.shiftKey && (e.key === 'k' || e.key === 'K')) {
1106
1113
  return;
1107
1114
  }
1108
1115