Skip to content

Commit 239cda8

Browse files
committed
Update console-sheet.js
1 parent 6e1c79c commit 239cda8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,21 @@ class ConsoleSheet {
660660
});
661661

662662
}
663+
664+
665+
// enable virtual keyboard control for the console sheet
666+
667+
input.on('focus', () => {
668+
669+
navigator.virtualKeyboard.overlaysContent = true;
670+
671+
});
672+
673+
input.on('blur', () => {
674+
675+
navigator.virtualKeyboard.overlaysContent = false;
676+
677+
});
663678

664679

665680
// refocus input if clicked on return button

0 commit comments

Comments
 (0)