Review players search behavior (arrow keys and click outside)

This commit is contained in:
Claude Brisson
2024-02-24 06:04:42 +01:00
parent 816ef24136
commit 945ae093d3
3 changed files with 23 additions and 5 deletions

View File

@@ -238,7 +238,7 @@ onLoad(() => {
case 'Enter': {
if (tab === '#registration') {
if (typeof(searchResultShown) === 'function') {
if (searchResultShown()) {
if (searchResultShown() && typeof(searchHighlight) !== 'undefined') {
fillPlayer(searchResult[searchHighlight]);
} else {
$('#register')[0].click();