Explorar el Código

#WOA-2358|Resolved|Focus title during initialization

Yevhen Pavliuk hace 8 años
padre
commit
9396c0fe14
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. 1
    0
      src/RichTextEditor.js
  2. 2
    0
      src/editor.html

+ 1
- 0
src/RichTextEditor.js Ver fichero

@@ -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 Ver fichero

@@ -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);