commit ad73aa66b4a127c3533ea656c9f5abe7495d5f8e
parent 4f25d9d732e74c0793c8e0ee57bdc0b57660d768
Author: Psychpsyo (Cameron) <60073468+Psychpsyo@users.noreply.github.com>
Date: Mon, 17 Nov 2025 21:50:23 +0000
Bug 1919999 [wpt PR 48257] - Add info on the key names that keyUp() and keyDown() accept., a=testonly
Automatic update from web-platform-tests
Add info on the key names that keyUp() and keyDown() accept. (#48257)
--
wpt-commits: 7dbc05a2e996d73228fffa18573b1e035b64696c
wpt-pr: 48257
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/resources/testdriver-actions.js b/testing/web-platform/tests/resources/testdriver-actions.js
@@ -279,6 +279,10 @@
/**
* Create a keyDown event for the current default key source
*
+ * To send special keys, send the respective key's codepoint,
+ * as defined by `WebDriver
+ * <https://w3c.github.io/webdriver/#keyboard-actions>`_.
+ *
* @param {String} key - Key to press
* @param {String?} sourceName - Named key source to use or null for the default key source
* @returns {Actions}
@@ -292,6 +296,10 @@
/**
* Create a keyUp event for the current default key source
*
+ * To send special keys, send the respective key's codepoint,
+ * as defined by `WebDriver
+ * <https://w3c.github.io/webdriver/#keyboard-actions>`_.
+ *
* @param {String} key - Key to release
* @param {String?} sourceName - Named key source to use or null for the default key source
* @returns {Actions}