Skip to content

trigger event when ctrl key up in tree #1760

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

Closed
1 task
Lakmi15 opened this issue Feb 5, 2020 · 4 comments
Closed
1 task

trigger event when ctrl key up in tree #1760

Lakmi15 opened this issue Feb 5, 2020 · 4 comments

Comments

@Lakmi15
Copy link

Lakmi15 commented Feb 5, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

currently, I'm using select method in tree component with multiple node select with ctrl key. but I'm looking event for ctrl key up in tree component.

async onTreeNodeSelectHandler(selectedKeys: any, event: any) {

    if (event.nativeEvent.ctrlKey === true){

}

inorder to fire this event I need to click on top of tree node. when I release ctrl key I want to do some logic without a click on other nodes.
are there any ways trigger ctrl key up event in tree component

What does the proposed API look like?

better can add key up and down listener event capture keyword input.

@tangjinzhou
Copy link
Member

You can try adding events to all tree node

@Lakmi15
Copy link
Author

Lakmi15 commented Feb 13, 2020

@tangjinzhou is this you means here?
on: { click: () => {}}

@github-actions
Copy link

github-actions bot commented Jan 4, 2021

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants