Up/down arrow keys are currently able to be used to hover courses on the sidebar, and when a course is hovered, user can hit backspace to remove it from their timetable. However, if a course is hovered, and a user hits the backspace key while searching for another course, it will delete the course.
How can we reproduce the problem?
Steps to reproduce the behavior:
Add a course to timetable
Hover over it using the down arrow key
Search for a course, and hit backspace (e.g. as if you made a typo)
Hovered course should delete
Expected Behavior
When searching for a course, hitting backspace should not delete the hovered course in the sidebar. (Maybe if a course is being hovered, but a user goes to search for a course, the "hovered course index" reverts to -1)
OS Version
Windows
Which browsers are you seeing the problem on?
Chrome
Additional Information
No response
Code of Conduct
[X] I agree to follow Semester.ly's Code of Conduct
Describe the Bug
Up/down arrow keys are currently able to be used to hover courses on the sidebar, and when a course is hovered, user can hit backspace to remove it from their timetable. However, if a course is hovered, and a user hits the backspace key while searching for another course, it will delete the course.
How can we reproduce the problem?
Steps to reproduce the behavior:
Expected Behavior
When searching for a course, hitting backspace should not delete the hovered course in the sidebar. (Maybe if a course is being hovered, but a user goes to search for a course, the "hovered course index" reverts to -1)
OS Version
Windows
Which browsers are you seeing the problem on?
Chrome
Additional Information
No response
Code of Conduct