Skip to content

Commit

Permalink
fix: #6888, Tree: inputText's onChange in nodeTemplate does not respo…
Browse files Browse the repository at this point in the history
…nd to a space key (#6891)

* fix: #6888, Tree: inputText's onChange in nodeTemplate does not respond to a space key

* fix: #6888, Tree: inputText's onChange in nodeTemplate does not respond to a space key

---------

Co-authored-by: ANTONA09 <akshay.antony@nyulangone.org>
  • Loading branch information
akshayaqburst and ANTONA09 authored Jul 16, 2024
1 parent ff49bcb commit 1a71647
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/lib/tree/UITreeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,17 @@ export const UITreeNode = React.memo((props) => {

case 'Enter':
case 'NumpadEnter':
case 'Space':
onEnterKey(event);

break;

case 'Space':
if (!['INPUT'].includes(event.target.nodeName)) {
onEnterKey(event);
}

break;

default:
break;
}
Expand Down

0 comments on commit 1a71647

Please sign in to comment.