From fc6452d4a40828142c9626b47eba44afb27aae53 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Tue, 2 Jun 2026 13:12:35 -0400 Subject: [PATCH] fix: Alt+P au lieu de Ctrl+P (conflit navigateur) + bouton config correct --- frontend/js/palette.js | 12 ++++++------ frontend/style.css | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/js/palette.js b/frontend/js/palette.js index 8fd72e5..bff1b7e 100644 --- a/frontend/js/palette.js +++ b/frontend/js/palette.js @@ -28,7 +28,7 @@ const COMMANDS = [ { id: 'theme', label: '🌓 Changer le thème', description: 'Basculer clair/sombre', action: () => { close(); toggleTheme(); } }, { id: 'reindex', label: '🔄 Réindexer', description: 'Forcer la réindexation complète', action: async () => { close(); try { await api('/api/index/reload'); showToast('Index rechargé', 'success'); } catch { showToast('Erreur de réindexation', 'error'); } } }, { id: 'help', label: '❓ Aide', description: 'Ouvrir l\'aide', action: () => { close(); const helpBtn = document.getElementById('header-help-btn'); if (helpBtn) helpBtn.click(); } }, - { id: 'config', label: '⚙️ Configuration', description: 'Ouvrir les paramètres', action: () => { close(); document.querySelector('[data-tab-config]')?.click(); } }, + { id: 'config', label: '⚙️ Configuration', description: 'Ouvrir les paramètres', action: () => { close(); const btn = document.getElementById('config-open-btn'); if (btn) btn.click(); } }, ]; // ── Create DOM structure ── @@ -41,7 +41,7 @@ function createDOM() {
- ${navigator.platform.includes('Mac') ? '⌘P' : 'Ctrl+P'} + Alt+P