disable the delete card shortcut

is being triggered when user has focus in text input due to webengine
 bug
This commit is contained in:
Damien Elmes 2017-01-08 20:45:27 +10:00
parent e2573d6a1a
commit 70e751f6ec

View file

@ -33,10 +33,6 @@ class Reviewer(object):
self.typeCorrect = None # web init happens before this is set
self.state = None
self.bottom = aqt.toolbar.BottomBar(mw, mw.bottomWeb)
# qshortcut so we don't autorepeat
self.delShortcut = QShortcut(QKeySequence("Delete"), self.mw)
self.delShortcut.setAutoRepeat(False)
self.delShortcut.activated.connect(self.onDelete)
addHook("leech", self.onLeech)
def show(self):