Skip to content

Commit

Permalink
put focus in wasm app
Browse files Browse the repository at this point in the history
  • Loading branch information
avan1235 committed Feb 19, 2024
1 parent 66381c8 commit 0896534
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions composeApp/src/wasmJsMain/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,11 @@

<script type="application/javascript" src="skiko.js"></script>
<script type="application/javascript" src="composeApp.js"></script>
<script>
window.onload = function () {
const canvasElm = document.getElementById("ComposeTarget");
canvasElm.setAttribute("tabindex", "0");
canvasElm.focus();
}
</script>
</html>

0 comments on commit 0896534

Please sign in to comment.