You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On MacOS X, it's possible to trigger a contextmenu event with ctrl + click. This gives a contextmenu event with { button: 0, buttons: 1 } (as opposed to { button: 2, buttons: 2 } for a normal right click). It would be good to be able to trigger this somehow, and I haven't found that the user-event library can do it at the moment.
We currently implement a combinationBehavior on keydown that only implements "select all" for Ctrl+A. This also behaves differently on Mac. See #778 (comment)
I think we should not hard-code but implement those combinations as plugins to the event/behavior and then let the user supply the plugin per setup().
importuserEvent,{InputScheme}from`@testing-library/user-event`// Could also extend it and supply your ownconstuser=userEvent.setup({inputScheme: InputScheme.MacOSX})
Problem description
On MacOS X, it's possible to trigger a contextmenu event with ctrl + click. This gives a
contextmenu
event with{ button: 0, buttons: 1 }
(as opposed to{ button: 2, buttons: 2 }
for a normal right click). It would be good to be able to trigger this somehow, and I haven't found that theuser-event
library can do it at the moment.Suggested solution
This would be my prefered solution:
Additional context
No response
The text was updated successfully, but these errors were encountered: