Skip to content

Commit

Permalink
Added option to close slash commands list using escape (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaagul authored May 16, 2024
1 parent 53a639e commit d65a2b3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ export default {
});
},
onKeyDown(props) {
if (props.event.key === "Escape") {
popup[0].hide();

return true;
}

return reactRenderer && reactRenderer?.ref?.onKeyDown(props);
},
onExit() {
Expand Down

0 comments on commit d65a2b3

Please sign in to comment.