View results pressing the enter key

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
debridat1
Posts: 13
Joined: Wed Jan 22, 2020 2:23 pm
Location: Italy

View results pressing the enter key

Post by debridat1 » Thu Dec 03, 2020 9:35 am

Hi,
I am using phpMyFAQ 3.0.5 with ElasticSearch 6.8.13 and it works very well.

When you perform a search, by pressing the enter key, the first FAQ in the list is automatically opened.
Instead, if you click with the mouse on the magnifying glass, all the search results are displayed.

Is it possible to change this functionality and view all the search results by pressing the enter key?

thanks

Thorsten
Posts: 15183
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: View results pressing the enter key

Post by Thorsten » Thu Dec 03, 2020 4:12 pm

Hi,

yes, I have to check the used library how to do that. I didn't implement it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

debridat1
Posts: 13
Joined: Wed Jan 22, 2020 2:23 pm
Location: Italy

Re: View results pressing the enter key

Post by debridat1 » Thu Dec 03, 2020 4:19 pm

ok thanks,
then I can modify the operation.
What is the library used to do this?

Tnk

Thorsten
Posts: 15183
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: View results pressing the enter key

Post by Thorsten » Thu Dec 03, 2020 4:46 pm

Hi,

we're using "bootstrap-3-typeahead" from https://github.com/bassjobsen/Bootstrap-3-Typeahead

Our code is here: https://github.com/thorsten/phpMyFAQ/bl ... peahead.js

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply