mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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
|
||||
if self.mw.app.keyboardModifiers() & Qt.ControlModifier:
|
||||
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
|
||||
elif self.mw.app.keyboardModifiers() & Qt.ShiftModifier:
|
||||
cur = unicode(self.form.searchEdit.lineEdit().text())
|
||||
|
|
Loading…
Reference in a new issue