-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Feature]: On Button Strg + Click | Center Mouse Button Click #10540
Comments
Hey @lublak I did not fully understand the request, do you mean to say that you need a new action called onCtrlClick which does a totally different behavior than onClick? |
@dilippitchika yes. For some information you can either use "middle mouse button" or "crtl click" to open any link in a new tab (just try it out) . So i use onClick to open it in a modal. But users are also know the "middle mouse button" or "crtl click" action so they can open multiple tabs directly. |
Hey @lublak understood it now. I have seen this behavior typically with links only where the user either wants to open the link the same or a different page, haven't seen a scenario where the whole action is different on ctrl click. For example clicking the button "Comment" below here doesn't open something in new tab. Don't you think it's hard to discover this behavior for non-link cases? Also is the content you are trying to show in modal vs in page different? Any examples for that? |
Currently I use a button (with white background and blue text that it looks like a link) to open a modal with an iframe in it. |
Thanks a lot for explaining, i got the idea now! Will prioritise this. |
@dilippitchika maybe we should have a way to inspect the keypress from the onClick so a user can make a decision instead of adding a new event handler? I'm not sure any button component supports this property out of the box |
@Nikhil-Nandagopal I was thinking in a similar direction, is some event emitter available for other events which are there? Just trying to understand what this property will look like - in my head the property was somewhat like "ctrlClick": true/false. Need some info on how this will look in the autocomplete. |
@dilippitchika it could be that the onClick has an |
@ajinkyakulkarni need some help from you. Would the POD have some expertise to provide a solution here? |
Is there an existing issue for this?
Summary
onCtrlClick/onCenterClick/onNewTabClick?
Why should this be worked on?
You are used to perform an action with a Ctrl + Click or with the middle mouse button other than with a simple click. Namely that the action open in a new browser tab.
Currently I use onClick to open a modal. It would be practical if the person clicks a Ctrl + Click or with the middle mouse button that I do not open a modal but that I can use e.g. simply navigateTo.
The text was updated successfully, but these errors were encountered: