allow shift click for OR query (#688)

This commit is contained in:
Damien Elmes 2013-04-11 17:07:08 +09:00
parent 872cca14e9
commit dcf38f2f10

View File

@ -733,6 +733,10 @@ by clicking on one on the left."""))
cur = unicode(self.form.searchEdit.lineEdit().text())
if cur:
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.onSearch()