Friday, December 23, 2016
1 change
Enhancements to existing features
Chat composer suggestions for canned responses and user mentions no longer pre-select the first option when the suggestion window opens. This prevents users from accidentally inserting an unwanted suggestion by pressing Enter, especially in languages where punctuation can trigger suggestions during normal typing.
Original PR description
The first element of canned responses (triggered by ':') and user ping (triggered by '@') is automatically chosen when the selection window is opened. In some languages, such as French, this can lead to an annoying behavior since the semi-column is always preceded by a space. Therefore, it always trigger the canned responses opening, and if the user types quickly or doesn't pay attention, pressing the ENTER key will automatically insert the first suggestion in the list. In this commit, no default selection is done on the first suggestion, and pressing ENTER when nothing is selected will simply close the suggestion window.