[windows] Improved focus handling

Make sure the webview is focused on initial show if the window
is focused and make behaviour consistent with macOS
This commit is contained in:
stffabi
2023-12-30 23:34:53 +01:00
parent 6262a4fac7
commit b37d0f1cf4
4 changed files with 18 additions and 25 deletions
+1 -1
View File
@@ -77,7 +77,7 @@
</div>
<div class="result" id="result">Please enter your name below 👇</div>
<div class="input-box" id="input">
<input autocomplete="off" class="input" id="name" type="text"/>
<input autofocus autocomplete="off" class="input" id="name" type="text"/>
<button class="btn" onclick="greet()">Greet</button>
</div>
<script src='bindings_main.js'></script>