Browse Source

#WOA-2358|Resolved|Focus title during initialization

Yevhen Pavliuk 8 years ago
parent
commit
9396c0fe14
2 changed files with 3 additions and 0 deletions
  1. 1
    0
      src/RichTextEditor.js
  2. 2
    0
      src/editor.html

+ 1
- 0
src/RichTextEditor.js View File

@@ -225,6 +225,7 @@ export default class RichTextEditor extends Component {
225 225
           style={{flex: 1}}
226 226
           {...this.props}
227 227
           hideKeyboardAccessoryView={true}
228
+          keyboardDisplayRequiresUserAction={false}
228 229
           ref={(r) => {this.webviewBridge = r}}
229 230
           onBridgeMessage={(message) => this.onBridgeMessage(message)}
230 231
           injectedJavaScript={injectScript}

+ 2
- 0
src/editor.html View File

@@ -883,6 +883,8 @@
883 883
 				whenPastingInsertAsPlainText('zss_editor_title');
884 884
 				whenPastingInsertAsPlainText('zss_editor_content');
885 885
 
886
+				zss_editor.focusTitle();
887
+
886 888
 				setTimeout(function() {
887 889
 					WebViewBridge.send(JSON.stringify({type: 'ZSS_INITIALIZED'}))
888 890
 				}, 20);