From edc3053774cf20e72c02df3fd530aef4cd3122e9 Mon Sep 17 00:00:00 2001 From: jeffser Date: Sun, 11 Aug 2024 15:59:39 -0600 Subject: [PATCH] Focus message entry when creating a new chat --- com.jeffser.Alpaca.json | 3 ++- src/window.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/com.jeffser.Alpaca.json b/com.jeffser.Alpaca.json index 8afd66f..f0e40ec 100644 --- a/com.jeffser.Alpaca.json +++ b/com.jeffser.Alpaca.json @@ -9,7 +9,8 @@ "--share=ipc", "--socket=fallback-x11", "--device=dri", - "--socket=wayland" + "--socket=wayland", + "--env=LANGUAGE=fr_FR.UTF-8" ], "cleanup" : [ "/include", diff --git a/src/window.py b/src/window.py index 2d55def..1997f60 100644 --- a/src/window.py +++ b/src/window.py @@ -1433,6 +1433,7 @@ Generate a title following these rules: self.chats["order"].insert(0, chat_name) self.save_history() self.new_chat_element(chat_name, True, False) + self.set_focus(self.message_text_view) def stop_pull_model(self, model_name): logger.debug("Stopping model pull")