Skip to content
Commit 9b1f3b96 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Fix Enter sending comment instead of adding autocomplete item to message



When the autocomplete popover is shown the At.js plugin listens on the
message input field for key down events, and when Enter is pressed it
adds the selected item to the message. However, as "_onTypeComment" also
handles key down events for the message input field, when Enter was
pressed the comment was submitted and At.js had no chance to add the
item before that happened. Now when Enter is pressed and the
autocomplete popover is shown the comment is not submitted, and thus
At.js adds the selected item to the message as expected.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent c43f64d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment