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

[usePress]: usePress print virtual click when not opening voiceover #7567

Open
theniceangel opened this issue Jan 6, 2025 · 2 comments
Open

Comments

@theniceangel
Copy link

Provide a general summary of the issue here

When I open system settings like follows:
image
Then, I tap on this button,
image
sometimes it will print virtual click

🤔 Expected Behavior?

Should always print mouse

😯 Current Behavior

Sometimes print virtual

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Directly visit https://react-spectrum.adobe.com/react-aria/usePress.html

Version

The official website

What browsers are you seeing the problem on?

Chrome

If other, please specify.

Chrome Version 131.0.6778.205 (Official Build) (arm64)

What operating system are you using?

Apple M1 Pro, Sequoia 15.2

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

@devongovett
Copy link
Member

What real-world issue does this cause for you?

@theniceangel
Copy link
Author

I need to distinguish whether the user triggered the action using a mouse or by enabling VoiceOver and using Control + Option + Space. If the action is triggered with Control + Option + Space, it is considered a virtual event, and I treat it as a keyboard operation. I executed some logic and if performed by mouse, I need do another logic.

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

No branches or pull requests

2 participants