summaryrefslogtreecommitdiff
path: root/src/modules/launcher/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/launcher/index.tsx')
-rw-r--r--src/modules/launcher/index.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/launcher/index.tsx b/src/modules/launcher/index.tsx
index 2821050..8287187 100644
--- a/src/modules/launcher/index.tsx
+++ b/src/modules/launcher/index.tsx
@@ -121,9 +121,10 @@ export default class Launcher extends PopupWindow {
this.hook(entry, "changed", () =>
(isAction(entry.get_text()) ? actions : content[mode.get()]).updateContent(entry.get_text())
);
- this.hook(entry, "activate", () =>
- (isAction(entry.get_text()) ? actions : content[mode.get()]).handleActivate(entry.get_text())
- );
+ this.hook(entry, "activate", () => {
+ (isAction(entry.get_text()) ? actions : content[mode.get()]).handleActivate(entry.get_text());
+ entry.set_text(""); // Clear search on activate
+ });
// Clear search on hide if not in math mode or creating a todo
this.connect("hide", () => mode.get() !== "math" && !entry.text.startsWith(">todo") && entry.set_text(""));