Skip to content

Commit

Permalink
feat(maindialog): handle WXK_RETURN on model list for submission
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclause committed Apr 2, 2024
1 parent c0a050d commit 58b929d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addon/globalPlugins/openai/maindialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 58b929d

Please sign in to comment.