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

[TreeView] Trigger focus on Ctrl + C / V #20243

Closed
2 tasks done
oliviertassinari opened this issue Mar 22, 2020 · 1 comment · Fixed by #20309
Closed
2 tasks done

[TreeView] Trigger focus on Ctrl + C / V #20243

oliviertassinari opened this issue Mar 22, 2020 · 1 comment · Fixed by #20309
Labels
bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module!

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Mar 22, 2020

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

The active focus on a tree view shifts when pressing Ctrl+C.

Expected Behavior 🤔

The active focus is left unchanged. Same as https://www.w3.org/TR/wai-aria-practices/examples/treeview/treeview-2/treeview-2b.html. I believe we should ignore all keyboard combinations.

Steps to Reproduce 🕹

Steps:

  1. Load https://material-ui.com/components/tree-view/#basic-tree-view
  2. Open "Application"
  3. Ctrl+C

Context 🔦

I was working on http://material-ui.com/customization/default-theme/#explore, trying to copy a value.

Your Environment 🌎

Tech Version
@material-ui/lab v4.0.0-alpha.46
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! labels Mar 22, 2020
@oliviertassinari oliviertassinari changed the title TreeView trigger focus on Ctrl + C / V [TreeView] Trigger focus on Ctrl + C / V Mar 22, 2020
@igorbrasileiro
Copy link
Contributor

I was reproducing the bug above and I think I found another.

Steps to Reproduce 🕹

Steps:

  1. Load basic-tree-view
  2. Open "Application"
  3. Ctrl + C - will focus Calendar
  4. Ctrl + C - will focus Chrome
  5. Ctrl + C - will focus Calendar

Steps 3, 4, 5 will loop if press Ctrl + Cmultiple times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants