@samitouri / QOS-React-2 / commits / a29ab9ab79

Tree arrow navigation respects event.defaultPrevented This prevents Reach MenuButton operations from also changing the tree selection in the background

Tree arrow navigation respects event.defaultPrevented This prevents Reach MenuButton operations from also changing the tree selection in the background

Brian Vaughn committed Apr 9, 2019 at 08:37 UTC a29ab9ab795f4962fc72f01ab85d9307f61a0808
1 file changed +1 -1
src/devtools/views/Components/Tree.js
+1 -1
@@ -73,7 +73,7 @@ export default function Tree(props: Props) {
73 }
74
75 const handleKeyDown = (event: KeyboardEvent) => {
76 - if ((event: any).target.tagName === 'INPUT') {
76 + if ((event: any).target.tagName === 'INPUT' || event.defaultPrevented) {
77 return;
78 }
79