mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
disable the delete card shortcut
is being triggered when user has focus in text input due to webengine bug
This commit is contained in:
parent
e2573d6a1a
commit
70e751f6ec
1 changed files with 0 additions and 4 deletions
|
@ -33,10 +33,6 @@ class Reviewer(object):
|
||||||
self.typeCorrect = None # web init happens before this is set
|
self.typeCorrect = None # web init happens before this is set
|
||||||
self.state = None
|
self.state = None
|
||||||
self.bottom = aqt.toolbar.BottomBar(mw, mw.bottomWeb)
|
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)
|
addHook("leech", self.onLeech)
|
||||||
|
|
||||||
def show(self):
|
def show(self):
|
||||||
|
|
Loading…
Reference in a new issue