MDL-57419 messaging: Don't use enter to send

This commit is contained in:
John Okely 2017-03-15 15:29:33 +08:00
parent 1034421264
commit e09066d0eb
2 changed files with 1 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -140,9 +140,6 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/cust
this.messageArea.onDelegateEvent('focus', SELECTORS.SENDMESSAGETEXT, this._setMessaging.bind(this));
this.messageArea.onDelegateEvent('blur', SELECTORS.SENDMESSAGETEXT, this._clearMessaging.bind(this));
this.messageArea.onDelegateEvent(CustomEvents.events.enter, SELECTORS.SENDMESSAGETEXT,
this._sendMessageHandler.bind(this));
$(document).on(AutoRows.events.ROW_CHANGE, this._adjustMessagesAreaHeight.bind(this));
// Check if any messages have been displayed on page load.