Skip to content

Commit af81818

Browse files
committed
Add demo for 4692
cefsharp/CefSharp#4692
1 parent dd60939 commit af81818

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

demo/isssue4692.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body onkeyup="keyup(event)">
9+
10+
<p>Demo Isssue 4692</p>
11+
12+
<p>Body has a keyup listener - it outputs the event on any key pressed on the keyboard. Opening file explorer via file input and canceling it (or picking a file) prevent event listener from being executed until manually clicked inside web control</p>
13+
14+
<p>Issue exist since version: <strong>v102.0.100</strong></p>
15+
16+
<p>Issue does not exist in version <strong>79.1.360</strong>, <strong>98.1.210</strong>, <strong>101.0.180</strong>.</p>
17+
18+
<input type="file" />
19+
20+
<br/>
21+
22+
<br/>
23+
24+
<textarea id="keyboardOutput" rows="5" cols="100" placeholder="Keyboard Output"></textarea>
25+
26+
<script>
27+
function keyup(event) {
28+
console.log(event);
29+
document.getElementById("keyboardOutput").value += event.key;
30+
}
31+
</script>
32+
</body>
33+
</html>

0 commit comments

Comments
 (0)