diff -r c4b5f3393d63 -r c1af2e327675 eric6/Preferences/ShortcutsDialog.py --- a/eric6/Preferences/ShortcutsDialog.py Tue Sep 24 18:45:33 2019 +0200 +++ b/eric6/Preferences/ShortcutsDialog.py Tue Sep 24 18:46:24 2019 +0200 @@ -136,8 +136,9 @@ self.__generateShortcutItem(self.uiItem, act) self.wizardsItem = self.__generateCategoryItem(self.tr("Wizards")) - for act in e5App().getObject("UserInterface")\ - .getActions('wizards'): + for act in ( + e5App().getObject("UserInterface").getActions('wizards') + ): self.__generateShortcutItem(self.wizardsItem, act) self.debugItem = self.__generateCategoryItem(self.tr("Debug")) @@ -242,10 +243,12 @@ """ if column != 0: keystr = itm.text(column).title() - if not itm.data(0, self.noCheckRole) and \ - not self.__checkShortcut(QKeySequence(keystr), - itm.data(0, self.objectTypeRole), - itm.parent()): + if ( + not itm.data(0, self.noCheckRole) and + not self.__checkShortcut(QKeySequence(keystr), + itm.data(0, self.objectTypeRole), + itm.parent()) + ): itm.setText(column, "") else: itm.setText(column, keystr) @@ -264,11 +267,13 @@ be performed (boolean) @param objectType type of the object (string). """ - if not noCheck and \ - (not self.__checkShortcut( - keysequence, objectType, self.__editTopItem) or - not self.__checkShortcut( - altKeysequence, objectType, self.__editTopItem)): + if ( + not noCheck and + (not self.__checkShortcut( + keysequence, objectType, self.__editTopItem) or + not self.__checkShortcut( + altKeysequence, objectType, self.__editTopItem)) + ): return self.shortcutsList.currentItem().setText(1, keysequence.toString()) @@ -304,9 +309,11 @@ # 2. check object type itmObjectType = itm.data(0, self.objectTypeRole) - if itmObjectType and \ - itmObjectType == objectType and \ - topItem != origTopItem: + if ( + itmObjectType and + itmObjectType == objectType and + topItem != origTopItem + ): continue # 3. check key name @@ -460,12 +467,14 @@ childHiddenCount = 0 for index in range(topItem.childCount()): itm = topItem.child(index) - if (self.actionButton.isChecked() and - not QRegExp(txt, Qt.CaseInsensitive).indexIn( - itm.text(0)) > -1) or \ - (self.shortcutButton.isChecked() and - not txt.lower() in itm.text(1).lower() and - not txt.lower() in itm.text(2).lower()): + if ( + (self.actionButton.isChecked() and + not QRegExp(txt, Qt.CaseInsensitive).indexIn( + itm.text(0)) > -1) or + (self.shortcutButton.isChecked() and + not txt.lower() in itm.text(1).lower() and + not txt.lower() in itm.text(2).lower()) + ): itm.setHidden(True) childHiddenCount += 1 else: