summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/suggestion_box.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/suggestion/suggestion_box.jsx')
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index dbec024ac..998c17340 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -110,6 +110,8 @@ export default class SuggestionBox extends React.Component {
} else if (e.which === KeyCodes.ENTER || e.which === KeyCodes.TAB) {
GlobalActions.emitCompleteWordSuggestion(this.suggestionId);
e.preventDefault();
+ } else if (e.which === KeyCodes.ESCAPE) {
+ GlobalActions.emitClearSuggestions(this.suggestionId);
} else if (this.props.onKeyDown) {
this.props.onKeyDown(e);
}