Hacker News new | ask | show | jobs
by ssalenik 3780 days ago
Nothing happens for me where I press enter either, I have to click on the search icon (firefox on linux).
1 comments

Working on this. Thanks.

Edit: We have this fixed but we're reluctant to roll it out. Two days ago when we did an AWS deploy, they replaced healthy machines with unhealthy ones, and we had an hour of outage.

If you want to fix this on the client, I think the following quick fix works. At the bottom of the sense2vec script https://sense2vec.spacy.io/js/sense2vec.js , change:

    input.addEventListener('keydown', function() {
       if(event.keyCode == 13) run();
    });
to

    input.addEventListener('keydown', function(event) {
       if(event.keyCode == 13) run();
    });
Also noting that linking URLs with the pipe symbol (eg https://sense2vec.spacy.io/?Autechre|PERSON) will result in the "|PERSON" being dropped from the search box.