search string is now a textarea instead of input

This commit is contained in:
zadam 2022-02-05 11:27:48 +01:00
parent 1c4358086d
commit 478eca47f4

View File

@ -7,7 +7,7 @@ const TPL = `
<tr> <tr>
<td class="title-column">Search string:</td> <td class="title-column">Search string:</td>
<td> <td>
<input type="text" class="form-control search-string" placeholder="fulltext keywords, #tag = value ..."> <textarea class="form-control search-string" placeholder="fulltext keywords, #tag = value ..."></textarea>
</td> </td>
<td class="button-column"> <td class="button-column">
<div class="dropdown help-dropdown"> <div class="dropdown help-dropdown">
@ -46,6 +46,9 @@ export default class SearchString extends AbstractSearchOption {
this.$searchString.on('input', () => this.spacedUpdate.scheduleUpdate()); this.$searchString.on('input', () => this.spacedUpdate.scheduleUpdate());
utils.bindElShortcut(this.$searchString, 'return', async () => { utils.bindElShortcut(this.$searchString, 'return', async () => {
// this also in effect disallows new lines in query string.
// on one hand this makes sense since search string is a label
// on the other hand it could be nice for structuring long search string. It's probably a niche case though.
await this.spacedUpdate.updateNowIfNecessary(); await this.spacedUpdate.updateNowIfNecessary();
this.triggerCommand('refreshResults'); this.triggerCommand('refreshResults');