LibWeb: Support non-required numpad code names

These aren't required to comply with the UIEvents spec, but they are
required by WebDriver.
This commit is contained in:
Timothy Flynn 2024-10-09 18:47:44 -04:00 committed by Andreas Kling
commit 5b2633d90f
Notes: github-actions[bot] 2024-10-10 08:42:15 +00:00
6 changed files with 85 additions and 9 deletions

View file

@ -9,6 +9,7 @@
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Internals/InternalAnimationTimeline.h>
#include <LibWeb/UIEvents/MouseButton.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::Internals {
@ -24,8 +25,8 @@ public:
void gc();
JS::Object* hit_test(double x, double y);
void send_text(HTML::HTMLElement&, String const&);
void send_key(HTML::HTMLElement&, String const&);
void send_text(HTML::HTMLElement&, String const&, WebIDL::UnsignedShort modifiers);
void send_key(HTML::HTMLElement&, String const&, WebIDL::UnsignedShort modifiers);
void commit_text();
void click(double x, double y);