mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Metadata diff dialog: Allow pressing alt+shift+right to trigger the reject button
This commit is contained in:
parent
a0d6206ab6
commit
39e0c04a9f
@ -645,6 +645,11 @@ class CompareMany(QDialog):
|
||||
b.setToolTip(reject_all_tooltip)
|
||||
b.clicked.connect(self.reject_all_remaining)
|
||||
self.sb = b = bb.addButton(_('R&eject'), QDialogButtonBox.ButtonRole.ActionRole)
|
||||
ac = QAction(self)
|
||||
ac.setShortcut(QKeySequence(Qt.Modifier.ALT | Qt.Modifier.SHIFT | Qt.Key.Key_Right))
|
||||
ac.triggered.connect(b.click)
|
||||
self.addAction(ac)
|
||||
b.setToolTip(_('Reject changes and move to next [{}]').format(ac.shortcut().toString(QKeySequence.SequenceFormat.NativeText)))
|
||||
connect_lambda(b.clicked, self, lambda self: self.next_item(False))
|
||||
b.setIcon(QIcon(I('minus.png'))), b.setAutoDefault(False)
|
||||
if reject_button_tooltip:
|
||||
|
Loading…
x
Reference in New Issue
Block a user