Этот коммит содержится в:
David Lu
2016-07-25 10:16:07 -04:00
коммит произвёл Christopher Speller
родитель 6e44d6b859
Коммит 426b14d8a9
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -168,7 +168,7 @@ export default class CreateComment extends React.Component {
}
commentMsgKeyPress(e) {
if ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend) {
if (!Utils.isMobile() && ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend)) {
if (e.which === KeyCodes.ENTER && !e.shiftKey && !e.altKey) {
e.preventDefault();
ReactDOM.findDOMNode(this.refs.textbox).blur();

Просмотреть файл

@@ -196,7 +196,7 @@ export default class CreatePost extends React.Component {
}
postMsgKeyPress(e) {
if ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend) {
if (!Utils.isMobile() && ((this.state.ctrlSend && e.ctrlKey) || !this.state.ctrlSend)) {
if (e.which === KeyCodes.ENTER && !e.shiftKey && !e.altKey) {
e.preventDefault();
ReactDOM.findDOMNode(this.refs.textbox).blur();