Skip to content

Commit b7436aa

Browse files
committed
Update console-sheet.js
1 parent 8b7645a commit b7436aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

live-view/extensions/mobile-console/console-sheet.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,20 @@ class ConsoleSheet {
684684

685685
});
686686

687+
// fix soft-hiding keyboard on Android
688+
navigator.virtualKeyboard.addEventListener('geometrychange', () => {
689+
690+
const keyboardHeight = navigator.virtualKeyboard.boundingRect.height;
691+
692+
if (document.activeElement === input &&
693+
keyboardHeight === 0) {
694+
695+
input.blur();
696+
697+
}
698+
699+
});
700+
687701
}
688702

689703

0 commit comments

Comments
 (0)