Skip to content

Commit

Permalink
added keyboard event for context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
s596757 committed Aug 18, 2023
1 parent 220572a commit 5892153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/widgets/src/tabbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ export class TabBar<T> extends Widget {
: this._evtKeyDown(event as KeyboardEvent);
break;
case 'contextmenu':
this._evtKeyDown(event as KeyboardEvent);
event.preventDefault();
event.stopPropagation();
break;
Expand Down Expand Up @@ -2001,6 +2002,7 @@ namespace Private {
let node = document.createElement('div');
let content = document.createElement('ul');
content.setAttribute('role', 'tablist');
content.setAttribute('tabindex', '-1');
content.className = 'lm-TabBar-content';
node.appendChild(content);

Expand Down

0 comments on commit 5892153

Please sign in to comment.