Skip to content

Trigger log search when pressing Enter in the filter field#978

Open
GrzegorzSidwa wants to merge 1 commit into
warrenbuckley:devfrom
GrzegorzSidwa:enhancement-search-logs-on-enter
Open

Trigger log search when pressing Enter in the filter field#978
GrzegorzSidwa wants to merge 1 commit into
warrenbuckley:devfrom
GrzegorzSidwa:enhancement-search-logs-on-enter

Conversation

@GrzegorzSidwa

Copy link
Copy Markdown

Changes

Pressing Enter in the "Search logs…" filter field now runs the search, so users no longer have to click the Search button every time.

The input and buttons are wrapped in a <form ng-submit="vm.search(...)">, and the Search button is changed to type="submit". The Clear button stays type="button" so it does not submit the form. AngularJS handles preventDefault() automatically (the form has no action), so there is no page reload.

Testing

Built the .NET server + Electron client and verified in the running app: typing text and pressing Enter triggers the search, the Search button still works on click, and Clear behaves as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant