mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Made SuggestionBox clear suggestions on escape (#2909)
This commit is contained in:
committed by
Corey Hulen
parent
e0378c0a13
commit
2ee8051caf
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user