Magic search code for keyboard shortcuts

(Sam Saffron) #1

There appears to be a bunch of magic code in controllers/search.js.es6 for handling up / down arrow for search results.

I just had a play here and it appears we can just use tab to do this, so all this magic is no longer needed.

Are we good to nuke all this code with extreme prejudice?

@cpradio @TechnoBear @eviltrout

(cpradio) #2

Yep, definitely looks like moveUp, moveDown, and select can be removed from the controller. Seems I missed that when I did the following:

(cpradio) #3

PR Sent

(Robin Ward) #4

Happy to remove it, also followed up with dead code removal:

(Jeff Atwood) #5