Skip to content

Commit

Permalink
Merge branch 'UIFixes' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
AAClause committed Mar 20, 2024
2 parents ac74ee9 + 1b8b296 commit 1e7913b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/globalPlugins/openai/maindialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,13 +1275,13 @@ def addEntry(self, accelEntries, modifiers, key, func):
accelEntries.append ( (modifiers, key, id_))

def addShortcuts(self):
self.messagesTextCtrl.Bind(wx.EVT_TEXT_COPY, self.onCopyMessage)
accelEntries = []
self.addEntry(accelEntries, wx.ACCEL_NORMAL, ord("M"), self.onCurrentMessage)
self.addEntry(accelEntries, wx.ACCEL_NORMAL, ord("J"), self.onPreviousMessage)
self.addEntry(accelEntries, wx.ACCEL_CTRL + wx.ACCEL_SHIFT, wx.WXK_UP, self.onPreviousMessage)
self.addEntry(accelEntries, wx.ACCEL_NORMAL, ord("K"), self.onNextMessage)
self.addEntry(accelEntries, wx.ACCEL_CTRL + wx.ACCEL_SHIFT, wx.WXK_DOWN, self.onNextMessage)
self.addEntry(accelEntries, wx.ACCEL_CTRL, ord("C"), self.onCopyMessage)
self.addEntry(accelEntries, wx.ACCEL_CTRL + wx.ACCEL_SHIFT, ord("C"), lambda evt: self.onCopyMessage(evt, True))
self.addEntry(accelEntries, wx.ACCEL_CTRL, ord("D"), self.onDeleteBlock)
self.addEntry(accelEntries, wx.ACCEL_CTRL, ord("S"), self.onSaveHistory)
Expand Down

0 comments on commit 1e7913b

Please sign in to comment.