handle ctrl+numpad enter on Windows
https://forums.ankiweb.net/t/ctrl-enter-with-the-number-pad-doesnt-work/10323/5
This commit is contained in:
parent
6eac76bc8a
commit
595e23189b
@ -85,6 +85,9 @@ class AddCards(QDialog):
|
||||
self.addButton = bb.addButton(tr.actions_add(), ar)
|
||||
qconnect(self.addButton.clicked, self.add_current_note)
|
||||
self.addButton.setShortcut(QKeySequence("Ctrl+Return"))
|
||||
# qt5.14 doesn't handle numpad enter on Windows
|
||||
self.compat_add_shorcut = QShortcut(QKeySequence("Ctrl+Enter"), self)
|
||||
qconnect(self.compat_add_shorcut.activated, self.addButton.click)
|
||||
self.addButton.setToolTip(shortcut(tr.adding_add_shortcut_ctrlandenter()))
|
||||
# close
|
||||
self.closeButton = QPushButton(tr.actions_close())
|
||||
|
Loading…
Reference in New Issue
Block a user