summaryrefslogtreecommitdiff
path: root/src/modules/launcher/index.tsx
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-05 19:25:49 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-05 19:25:49 +1100
commitab80d8f78681ac46e19ad97e152b7d5afe1bf999 (patch)
tree8989038f53e89f80c27b80c824cb6a12c7fae10c /src/modules/launcher/index.tsx
parentupdates: fix escaping markup (diff)
downloadcaelestia-shell-ab80d8f78681ac46e19ad97e152b7d5afe1bf999.tar.gz
caelestia-shell-ab80d8f78681ac46e19ad97e152b7d5afe1bf999.tar.bz2
caelestia-shell-ab80d8f78681ac46e19ad97e152b7d5afe1bf999.zip
launcher: fixes
Fix light/dark actions Fix delay when pressing enter
Diffstat (limited to 'src/modules/launcher/index.tsx')
-rw-r--r--src/modules/launcher/index.tsx2
1 files changed, 1 insertions, 1 deletions
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