mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
PI: Ctrl-Return/Enter on personal.ini editbox equivalent to clicking OK button.
This commit is contained in:
parent
bb3a86298e
commit
65a7538452
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue