mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
9264 dismiss keyboard after user finished typing in marketplace search bar and hit search or return key
This commit is contained in:
parent
2c51e516eb
commit
78d89d886f
1 changed files with 13 additions and 0 deletions
|
@ -318,6 +318,15 @@
|
|||
});
|
||||
}
|
||||
|
||||
function injectUnfocusOnSearch() {
|
||||
// unfocus input field on search, thus hiding virtual keyboard
|
||||
$('#search-box').on('submit', function () {
|
||||
if (document.activeElement) {
|
||||
document.activeElement.blur();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function injectHiFiCode() {
|
||||
if (commerceMode) {
|
||||
maybeAddLogInButton();
|
||||
|
@ -347,6 +356,8 @@
|
|||
maybeAddPurchasesButton();
|
||||
}
|
||||
}
|
||||
|
||||
injectUnfocusOnSearch();
|
||||
}
|
||||
|
||||
function injectHiFiItemPageCode() {
|
||||
|
@ -386,6 +397,8 @@
|
|||
maybeAddPurchasesButton();
|
||||
}
|
||||
}
|
||||
|
||||
injectUnfocusOnSearch();
|
||||
}
|
||||
|
||||
function updateClaraCode() {
|
||||
|
|
Loading…
Reference in a new issue