Skip to content

Commit 0cafbd6

Browse files
committed
fix: allow Escape key to remove selection
1 parent 6b008c3 commit 0cafbd6

File tree

1 file changed

+3
-0
lines changed
  • plugins/plugin-codeflare-dashboard/src/components/Top

1 file changed

+3
-0
lines changed

Diff for: plugins/plugin-codeflare-dashboard/src/components/Top/index.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ class Top extends React.PureComponent<Props, State> {
122122
this.setState((curState) => ({ refreshCycle: (curState?.refreshCycle || 0) + 1 }))
123123
} else {
124124
switch (key.name) {
125+
case "escape":
126+
this.setState({ selectedGroupIdx: -1 })
127+
break
125128
case "left":
126129
case "right":
127130
if (this.state.groups) {

0 commit comments

Comments
 (0)