mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't repeat shortcuts when key held down
https://anki.tenderapp.com/discussions/ankidesktop/29405-space-bar-repeat-problem
This commit is contained in:
parent
daf8d2607a
commit
df280783b3
1 changed files with 3 additions and 1 deletions
|
@ -718,7 +718,9 @@ title="%s" %s>%s</button>''' % (
|
||||||
def applyShortcuts(self, shortcuts):
|
def applyShortcuts(self, shortcuts):
|
||||||
qshortcuts = []
|
qshortcuts = []
|
||||||
for key, fn in shortcuts:
|
for key, fn in shortcuts:
|
||||||
qshortcuts.append(QShortcut(QKeySequence(key), self, activated=fn))
|
scut = QShortcut(QKeySequence(key), self, activated=fn)
|
||||||
|
scut.setAutoRepeat(False)
|
||||||
|
qshortcuts.append(scut)
|
||||||
return qshortcuts
|
return qshortcuts
|
||||||
|
|
||||||
def setStateShortcuts(self, shortcuts):
|
def setStateShortcuts(self, shortcuts):
|
||||||
|
|
Loading…
Reference in a new issue