diff --git a/SampleApps/WebView2APISample/assets/ScenarioNonClientRegionSupport.html b/SampleApps/WebView2APISample/assets/ScenarioNonClientRegionSupport.html
index 95aa7a58..9bc24edd 100644
--- a/SampleApps/WebView2APISample/assets/ScenarioNonClientRegionSupport.html
+++ b/SampleApps/WebView2APISample/assets/ScenarioNonClientRegionSupport.html
@@ -76,11 +76,21 @@
Interactive Elements
textarea.addEventListener("blur", (e) => {
textarea.style['app-region'] = "drag";
dragarea.style.width = `${dragareaInitialWidth + 1}px`;
- })
+ });
button.addEventListener("click", () => {
counter.innerText = parseInt(counter.innerText) + 1;
- })
+ });
+
+ ["click", "contextmenu"].forEach(eventType => { // contextmenu is not received here
+ button.addEventListener(eventType, (e) => {
+ console.log(`Mouse event: ${eventType}`, e);
+ });
+ });
+
+ button.addEventListener("keypress", (e) => {
+ console.log(`Key press: ${e.key}`, e);
+ });