mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
ctrl+click to append filter
This commit is contained in:
parent
dac9f0584b
commit
d9299a6793
1 changed files with 4 additions and 0 deletions
|
@ -635,6 +635,10 @@ class Browser(QMainWindow):
|
|||
items.append(txt)
|
||||
txt = ""
|
||||
txt = " ".join(items)
|
||||
if self.mw.app.keyboardModifiers() & Qt.ControlModifier:
|
||||
cur = unicode(self.form.searchEdit.text())
|
||||
if cur:
|
||||
txt = cur + " " + txt
|
||||
self.form.searchEdit.setText(txt)
|
||||
self.onSearch()
|
||||
|
||||
|
|
Loading…
Reference in a new issue