From 65a753845297850e429846df1ce40e5a1236e09d Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 10 Jun 2022 08:59:49 -0500 Subject: [PATCH] PI: Ctrl-Return/Enter on personal.ini editbox equivalent to clicking OK button. --- calibre-plugin/dialogs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calibre-plugin/dialogs.py b/calibre-plugin/dialogs.py index 80932cb7..727203ca 100644 --- a/calibre-plugin/dialogs.py +++ b/calibre-plugin/dialogs.py @@ -1374,6 +1374,8 @@ class IniTextDialog(SizePersistedDialog): self.addCtrlKeyPress(QtCore.Qt.Key_F,self.findFocus) self.addCtrlKeyPress(QtCore.Qt.Key_G,self.find) + self.addCtrlKeyPress(QtCore.Qt.Key_Return,self.accept) + self.addCtrlKeyPress(QtCore.Qt.Key_Enter,self.accept) # num pad button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) button_box.accepted.connect(self.accept) button_box.rejected.connect(self.reject)