diff --git a/templates/base.html b/templates/base.html index 6da95d0..53b527b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -144,9 +144,9 @@ + aria-label="Open command palette">⌕ K @@ -346,8 +346,9 @@ const btn = e.target.closest('[data-action]'); if (!btn) return; const action = btn.getAttribute('data-action'); - if (action === 'show-keyboard-help' && window.lt) lt.modal.open('lt-keys-help'); - if (action === 'open-settings' && window.lt) lt.modal.open('lt-settings-modal'); + if (action === 'open-cmdpalette' && window.lt && lt.cmdPalette) lt.cmdPalette.open(); + if (action === 'show-keyboard-help' && window.lt) lt.modal.open('lt-keys-help'); + if (action === 'open-settings' && window.lt) lt.modal.open('lt-settings-modal'); }); lt.keys.on('r', function() { lt.autoRefresh.now(); });