Skip to content

Commit

Permalink
search string is now a textarea instead of input
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Feb 5, 2022
1 parent 1c43580 commit 478eca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/public/app/widgets/search_options/search_string.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const TPL = `
<tr>
<td class="title-column">Search string:</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 class="button-column">
<div class="dropdown help-dropdown">
Expand Down Expand Up @@ -46,6 +46,9 @@ export default class SearchString extends AbstractSearchOption {
this.$searchString.on('input', () => this.spacedUpdate.scheduleUpdate());

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();

this.triggerCommand('refreshResults');
Expand Down

0 comments on commit 478eca4

Please sign in to comment.