--- a/src/eric7/Preferences/ShortcutDialog.py Wed Dec 20 11:06:38 2023 +0100 +++ b/src/eric7/Preferences/ShortcutDialog.py Wed Dec 20 14:58:58 2023 +0100 @@ -28,9 +28,12 @@ """ Constructor - @param parent The parent widget of this dialog. (QWidget) - @param name The name of this dialog. (string) - @param modal Flag indicating a modal dialog. (boolean) + @param parent The parent widget of this dialog. + @type QWidget + @param name The name of this dialog. + @type str + @param modal Flag indicating a modal dialog. + @type bool """ super().__init__(parent) if name: @@ -83,11 +86,15 @@ """ Public method to set the key to be configured. - @param key key sequence to be changed (QKeySequence) - @param alternateKey alternate key sequence to be changed (QKeySequence) + @param key key sequence to be changed + @type QKeySequence + @param alternateKey alternate key sequence to be changed + @type QKeySequence @param noCheck flag indicating that no uniqueness check should - be performed (boolean) - @param objectType type of the object (string). + be performed + @type bool + @param objectType type of the object + @type str """ self.__clearKeys() @@ -126,7 +133,8 @@ """ Private method to set the text of a key edit. - @param txt text to be set (string) + @param txt text to be set + @type str """ if self.primaryButton.isChecked(): self.keyEdit.setText(txt) @@ -138,8 +146,11 @@ Public method called to filter the event queue. @param watched the QObject being watched + @type QObject @param event the event that occurred + @type QEvent @return always False + @rtype bool """ if event.type() == QEvent.Type.KeyPress: self.keyPressEvent(event) @@ -151,7 +162,8 @@ """ Protected method to handle a key press event. - @param evt the key event (QKeyEvent) + @param evt the key event + @type QKeyEvent """ if evt.key() in [ Qt.Key.Key_Control,