oppia: It is not possible to search by pressing the Enter key on the classroom page search bar
Describe the bug It is not possible to search for lessons by pressing the enter key on the search bar on the classroom page.
To Reproduce Steps to reproduce the behavior:
- Go to the classroom page on the test server.
- Type something in the search bar which appears towards the bottom of the page
- Press ‘Enter’ on the keyboard
- Notice that the search is not started unless you ‘click’ on the search icon.
Observed behavior Pressing the enter key doesn’t start the search.
Expected behavior Pressing the enter key should start the search.
Possible steps to fix the issue
- Make sure you are able to run the Oppia dev server.
- Navigate to
core/templates/pages/library-page/search-bar/search-bar.component.htmland add an event to detect when the enter key is pressed. - Program that event to trigger the search function when it detects the pressing of the enter key.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (14 by maintainers)
Commits related to this issue
- Fix issue #15537 : Allow search execution by pressing the Enter key on the classroom page search bar (#16242) * Enter button work for search * Enterkeywork — committed to oppia/oppia by SubhashThenua 2 years ago
@akshit5565 Sure! Assigning it you.