mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
allow shift click for OR query (#688)
This commit is contained in:
parent
872cca14e9
commit
dcf38f2f10
1 changed files with 4 additions and 0 deletions
|
@ -733,6 +733,10 @@ by clicking on one on the left."""))
|
||||||
cur = unicode(self.form.searchEdit.lineEdit().text())
|
cur = unicode(self.form.searchEdit.lineEdit().text())
|
||||||
if cur:
|
if cur:
|
||||||
txt = cur + " " + txt
|
txt = cur + " " + txt
|
||||||
|
elif self.mw.app.keyboardModifiers() & Qt.ShiftModifier:
|
||||||
|
cur = unicode(self.form.searchEdit.lineEdit().text())
|
||||||
|
if cur:
|
||||||
|
txt = cur + " or " + txt
|
||||||
self.form.searchEdit.lineEdit().setText(txt)
|
self.form.searchEdit.lineEdit().setText(txt)
|
||||||
self.onSearch()
|
self.onSearch()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue