Этот коммит содержится в:
Christopher Speller
2016-07-15 07:49:57 -04:00
коммит произвёл GitHub
родитель 491593b285
Коммит b5c5744bc7
15 изменённых файлов: 47 добавлений и 31 удалений

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

@@ -282,7 +282,8 @@ class FileUpload extends React.Component {
keyUpload(e) {
if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.U) {
e.preventDefault();
if (this.props.postType === 'post' && document.activeElement.id === 'post_textbox' || this.props.postType === 'comment' && document.activeElement.id === 'reply_textbox') {
if ((this.props.postType === 'post' && document.activeElement.id === 'post_textbox') ||
(this.props.postType === 'comment' && document.activeElement.id === 'reply_textbox')) {
$(this.refs.fileInput).focus().trigger('click');
}
}