Don't use our copy handler when editing a message

(imported from commit 49e7001d8aa9af4f482b62332da03faad784074f)
This commit is contained in:
Leo Franchi 2014-01-31 17:39:50 -05:00
parent bb21400732
commit f8a9f36dfa

View File

@ -175,6 +175,13 @@ function copy_handler(e) {
return;
}
// Do nothing if the user is selecting anything while editing,
// as in that case we want to let the browser select the
// text field text as usual
if (startc.hasClass('edit-controls')) {
return;
}
// If the user is running the desktop app, we still create "div"
// so that we can replace emoji with their text
div.append(range.cloneContents());