fix(launcher): close menu when opening an app
This commit is contained in:
1 parent
8f7da29c92
commit
e2d873fe7f
1 file changed
+3
@@ -101,6 +101,9 @@
|
||||
wireLanguageControl();
|
||||
polishSystemChrome();
|
||||
document.addEventListener('click', e => { if (e.target.closest('#content-today .primary')) clearDraftAfterSave(); });
|
||||
document.addEventListener('click', e => {
|
||||
if (e.target.closest('.launchitem')) document.querySelector('#launcher')?.classList.add('hidden');
|
||||
});
|
||||
document.addEventListener('keydown', e => {
|
||||
const mod = e.ctrlKey || e.metaKey;
|
||||
if (mod && e.key.toLowerCase() === 'k') { e.preventDefault(); toggleLauncher(); }
|
||||
|
||||
Reference in new issue
Block a user