fix: navigator.keyboard.lock() fullscreen exit handling (#40365)

fix: navigator.keyboard.lock() fullscreen exit handling
This commit is contained in:
Shelley Vohr 2023-10-31 11:59:39 -04:00 committed by GitHub
parent 4b1c31e4db
commit fcdd5cba71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 86 additions and 16 deletions

26
spec/fixtures/pages/modal.html vendored Normal file
View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<body>
<dialog id="favDialog">
<form>
<p>
<label>
Favorite animal:
<select>
<option value="default">Choose…</option>
<option>Brine shrimp</option>
<option>Red panda</option>
<option>Spider monkey</option>
</select>
</label>
</p>
<div>
<button value="cancel" formmethod="dialog">Cancel</button>
<button id="confirmBtn" value="default">Confirm</button>
</div>
</form>
</dialog>
</body>
</html>