Skip to content

Commit

Permalink
Merge pull request #16056 from qburst/master
Browse files Browse the repository at this point in the history
fix: #16055, Tree: inputText in Template mode does not respond to a space key
  • Loading branch information
cetincakiroglu authored Jul 18, 2024
2 parents f503e11 + 356ad46 commit 8c11720
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,18 @@ export class UITreeNode implements OnInit {

//enter
case 'Enter':
case 'Space':
case 'NumpadEnter':
this.onEnter(event);
break;

//space
case 'Space':
const nodeName = event.target instanceof HTMLElement && event.target.nodeName;
if (!['INPUT'].includes(nodeName)) {
this.onEnter(event);
}
break;

//tab
case 'Tab':
this.setAllNodesTabIndexes();
Expand Down

0 comments on commit 8c11720

Please sign in to comment.