mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 21:41:58 +00:00
LibWeb: Translate special WebDriver keys for backspace, tab and return
Some checks failed
CI / Lagom (arm64, Sanitizer_CI, false, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (x86_64, Fuzzers_CI, false, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, false, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, true, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (arm64, macos-15, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (x86_64, ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Build Dev Container Image / build (push) Has been cancelled
Some checks failed
CI / Lagom (arm64, Sanitizer_CI, false, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (x86_64, Fuzzers_CI, false, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, false, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, true, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (arm64, macos-15, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (x86_64, ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Build Dev Container Image / build (push) Has been cancelled
These private code points are used extensively by WebDriver clients, such as the WPT suite.
This commit is contained in:
parent
0b6f693636
commit
f996fb9d80
Notes:
github-actions[bot]
2025-05-08 11:06:57 +00:00
Author: https://github.com/gmta
Commit: f996fb9d80
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4651
1 changed files with 3 additions and 1 deletions
|
@ -926,6 +926,9 @@ static KeyEvent key_code_to_page_event(u32 code_point, UIEvents::KeyModifier mod
|
|||
code_point = [&]() -> u32 {
|
||||
// clang-format off
|
||||
switch (code_point) {
|
||||
case 0xE003: return '\b';
|
||||
case 0xE004: return '\t';
|
||||
case 0xE007: return '\n';
|
||||
case 0xE00D: return ' ';
|
||||
case 0xE018: return ';';
|
||||
case 0xE019: return '=';
|
||||
|
@ -1581,7 +1584,6 @@ GC::Ref<JS::Cell> dispatch_actions_for_a_string(Web::WebDriver::InputState& inpu
|
|||
}
|
||||
// -> cluster is a modifier key
|
||||
{
|
||||
|
||||
// FIXME: 1. Dispatch the events for a typeable string with input state, input id, source, current typeable text, and browsing context.
|
||||
// FIXME: 2. Empty current typeable text.
|
||||
// FIXME: 3. Let keydown action be an action object constructed with arguments input id, "key", and "keyDown".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue