fix: Enter should open search when not tile search is selected
This commit is contained in:
parent
aa49a5fb42
commit
7c4619adb9
3 changed files with 6 additions and 3 deletions
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
public/mix-manifest.json
generated
2
public/mix-manifest.json
generated
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"/css/app.css": "/css/app.css?id=9a25947db63214edd4e6f459200dfa62",
|
||||
"/js/app.js": "/js/app.js?id=6d4db31cf508e4b9c767ec2710c256ff"
|
||||
"/js/app.js": "/js/app.js?id=b71fe417971ee1aaaaa84e3824221126"
|
||||
}
|
||||
|
|
5
resources/assets/js/keyBindings.js
vendored
5
resources/assets/js/keyBindings.js
vendored
|
@ -11,6 +11,10 @@ const openFirstNonHiddenItem = event => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (document.querySelector('#search-container select[name=provider]').value !== 'tiles') {
|
||||
return;
|
||||
}
|
||||
|
||||
const item = document.querySelector('#sortable section.item-container:not([style="display: none;"]) a');
|
||||
|
||||
if ('href' in item) {
|
||||
|
@ -30,6 +34,5 @@ document.addEventListener('keydown', function (event) {
|
|||
KEY_BINDINGS[event.key](event);
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue