Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't type numpad digits with keyboard.press func. #15187

Closed
hkfsc opened this issue Jun 28, 2022 · 2 comments
Closed

[BUG] Can't type numpad digits with keyboard.press func. #15187

hkfsc opened this issue Jun 28, 2022 · 2 comments

Comments

@hkfsc
Copy link

hkfsc commented Jun 28, 2022

Context:

  • Playwright Version: Playwright 1.22.0
  • Operating System: Windows
  • Node.js version: 14.6
  • Browser: Chromium

Code Snippet

page.keyboard.press("Numpad5")
page.keyboard.press("NumLock")
page.keyboard.press("Numpad5")

Describe the bug
When I execute above code snippet, with my computer's Numlock on, I except that it will type digit 5 for me, but it just press the key 'Clear', which is not a key I want at all.

@ville-nvt
Copy link

ville-nvt commented Jun 29, 2022

On macOS it would make sense.

https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values#code_values_on_mac

Virtual keycode                         
kVK_ANSI_KeypadClear (0x47) | "NumLock" 

@pavelfeldman
Copy link
Member

Why was this issue closed?

Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.

If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants