From 27230def47f4d7d7efea365cb5e78c600085b6a9 Mon Sep 17 00:00:00 2001 From: Dave Tapuska Date: Tue, 10 May 2022 13:06:56 -0400 Subject: [PATCH] Add getModifierState definition to TouchEvent (#91) This matches the text that is used in the UI Events spec. --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index 49a8887..2c8fcbc 100644 --- a/index.html +++ b/index.html @@ -496,6 +496,7 @@

TouchEvent Interface

readonly attribute boolean metaKey; readonly attribute boolean ctrlKey; readonly attribute boolean shiftKey; + getter boolean getModifierState (DOMString keyArg); };
@@ -544,6 +545,12 @@

TouchEvent Interface

true if the shift (Shift) key modifier is activated; otherwise false

+
getModifierState(keyArg)
+
+

Queries the state of a modifier using a key value. Returns + true if it is a modifier key and the modifier is + activated, false otherwise.

+