From 58b929dcdb3f7ed56021b3c620c3d0b168b05696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Abush=20Clause?= Date: Tue, 2 Apr 2024 19:17:52 +0200 Subject: [PATCH] feat(maindialog): handle WXK_RETURN on model list for submission --- addon/globalPlugins/openai/maindialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon/globalPlugins/openai/maindialog.py b/addon/globalPlugins/openai/maindialog.py index 309046e..6bf719c 100644 --- a/addon/globalPlugins/openai/maindialog.py +++ b/addon/globalPlugins/openai/maindialog.py @@ -1070,6 +1070,8 @@ def onModelKeyDown(self, evt): self.onFavoriteModel(evt) elif evt.GetModifiers() == wx.MOD_NONE: self.showModelDetails() + elif evt.GetKeyCode() == wx.WXK_RETURN: + self.onSubmit(evt) else: evt.Skip()