From 418f057482464f4102d601d9394b5ae15f6a4b9d Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sat, 1 Mar 2025 16:46:24 +1100
Subject: launcher: fix scheme and todo actions

Fix the autocomplete
---
 src/modules/launcher/actions.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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

diff --git a/src/modules/launcher/actions.tsx b/src/modules/launcher/actions.tsx
index de9f454..52910ea 100644
--- a/src/modules/launcher/actions.tsx
+++ b/src/modules/launcher/actions.tsx
@@ -63,7 +63,7 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({
         action: (...args) => {
             // If no args, autocomplete cmd
             if (args.length === 0) {
-                entry.set_text(">scheme ");
+                entry.set_text(`${config.actionPrefix.get()}scheme `);
                 entry.set_position(-1);
                 return;
             }
@@ -79,7 +79,7 @@ const actions = (mode: Variable<Mode>, entry: Widget.Entry): ActionMap => ({
         action: (...args) => {
             // If no args, autocomplete cmd
             if (args.length === 0) {
-                entry.set_text(">todo ");
+                entry.set_text(`${config.actionPrefix.get()}todo `);
                 entry.set_position(-1);
                 return;
             }
@@ -195,7 +195,6 @@ export default class Actions extends Widget.Box implements LauncherContent {
     }
 
     handleActivate(): void {
-        this.#content.get_child_at_index(0)?.get_child()?.grab_focus();
         this.#content.get_child_at_index(0)?.get_child()?.activate();
     }
 }
-- 
cgit v1.2.3-freya

