mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
remove search text when ctrl-clicking a left panel item
This commit is contained in:
parent
a570779a26
commit
083d9e8aa5
1 changed files with 3 additions and 2 deletions
|
@ -790,7 +790,8 @@ by clicking on one on the left."""))
|
||||||
txt = "-"+txt
|
txt = "-"+txt
|
||||||
if self.mw.app.keyboardModifiers() & Qt.ControlModifier:
|
if self.mw.app.keyboardModifiers() & Qt.ControlModifier:
|
||||||
cur = unicode(self.form.searchEdit.lineEdit().text())
|
cur = unicode(self.form.searchEdit.lineEdit().text())
|
||||||
if cur:
|
if cur and cur != \
|
||||||
|
_("<type here to search; hit enter to show current deck>"):
|
||||||
txt = cur + " " + txt
|
txt = cur + " " + txt
|
||||||
elif self.mw.app.keyboardModifiers() & Qt.ShiftModifier:
|
elif self.mw.app.keyboardModifiers() & Qt.ShiftModifier:
|
||||||
cur = unicode(self.form.searchEdit.lineEdit().text())
|
cur = unicode(self.form.searchEdit.lineEdit().text())
|
||||||
|
|
Loading…
Reference in a new issue