loyada / dollarx

Other
15 stars 1 forks source link

Add shift clicking (or possibly other meta keys) to click API #86

Closed mnazbro closed 1 year ago

mnazbro commented 1 year ago

Adding shift clicking will allow the ability to sort by multiple columns in AgGrid.

In addition to that, adding clicking with other meta keys allows more compatibility with other more complex click interactions.

loyada commented 1 year ago

Can you please try: https://dollarx.readthedocs.io/en/latest/javadoc/com/github/loyada/jdollarx/singlebrowser/InBrowserSinglton.html?highlight=presskeydown#presskeydown

i.e.

Path myElement = .... ;
pressKeyDown(Keys.SHIFT).on(myElement);

To press "shift" and do multiple clicks, can you try:

pressKeyDown(Keys.SHIFT).inBrowser();
clickOn(..);
clickOn(..);
clickOn(..);
releaseKey(Keys.SHIFT).inBrowser();
mnazbro commented 1 year ago

Yes, that fixes the issue. Thanks!