fixed mobile enter button (#3639)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6e44d6b859
Коммит
426b14d8a9
@@ -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();
|
||||
|
||||
Ссылка в новой задаче
Block a user