Skip to content

Commit af6c5aa

Browse files
committed
Add ability to select item by space key
1 parent 5079ed1 commit af6c5aa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/vscode-list/vscode-list.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export class VscodeList extends VscElement {
3131
@property({type: Number, reflect: true})
3232
indent = 8;
3333

34+
@property({type: Boolean, reflect: true})
35+
multiselect = false;
36+
3437
/** @internal */
3538
@property({type: String, reflect: true})
3639
role = 'tree';
@@ -125,7 +128,7 @@ export class VscodeList extends VscElement {
125128
}
126129
}
127130

128-
if (key === 'Enter') {
131+
if (key === 'Enter' || key === ' ') {
129132
const {focusedItem} = this._listContextState;
130133

131134
if (focusedItem) {

0 commit comments

Comments
 (0)