diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-04 23:26:05 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-05 11:41:20 +1100 |
| commit | 35364193e3d24d47a8c2d970f70f696f2247e3bb (patch) | |
| tree | 03ad351e37e040eabe666d6f4921971545a1fb17 /src/modules/launcher/index.tsx | |
| parent | popdowns: buttons change colour when disabled (diff) | |
| download | caelestia-shell-35364193e3d24d47a8c2d970f70f696f2247e3bb.tar.gz caelestia-shell-35364193e3d24d47a8c2d970f70f696f2247e3bb.tar.bz2 caelestia-shell-35364193e3d24d47a8c2d970f70f696f2247e3bb.zip | |
launcher: math mode
Diffstat (limited to 'src/modules/launcher/index.tsx')
| -rw-r--r-- | src/modules/launcher/index.tsx | 7 |
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("")); |