From ab80d8f78681ac46e19ad97e152b7d5afe1bf999 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Wed, 5 Mar 2025 19:25:49 +1100
Subject: launcher: fixes

Fix light/dark actions
Fix delay when pressing enter
---
 src/modules/launcher/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/modules/launcher/index.tsx')

diff --git a/src/modules/launcher/index.tsx b/src/modules/launcher/index.tsx
index 8287187..f3a1e53 100644
--- a/src/modules/launcher/index.tsx
+++ b/src/modules/launcher/index.tsx
@@ -123,7 +123,7 @@ export default class Launcher extends PopupWindow {
         );
         this.hook(entry, "activate", () => {
             (isAction(entry.get_text()) ? actions : content[mode.get()]).handleActivate(entry.get_text());
-            entry.set_text(""); // Clear search on activate
+            if (mode.get() === "math" && !isAction(entry.get_text())) entry.set_text(""); // Cause math mode doesn't auto clear
         });
 
         // Clear search on hide if not in math mode or creating a todo
-- 
cgit v1.2.3-freya

