ソースを参照

autoFocus for richtexteditor

pu 5 年 前
コミット
12f8bdc0db
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3
    0
      src/RichTextEditor.js

+ 3
- 0
src/RichTextEditor.js ファイルの表示

56
         Keyboard.addListener('keyboardDidShow', this._onKeyboardWillShow),
56
         Keyboard.addListener('keyboardDidShow', this._onKeyboardWillShow),
57
         Keyboard.addListener('keyboardDidHide', this._onKeyboardWillHide)
57
         Keyboard.addListener('keyboardDidHide', this._onKeyboardWillHide)
58
       ];
58
       ];
59
+      if (this.props.autoFocus) {
60
+        this.webview.requestFocus();
61
+      }
59
     }
62
     }
60
   }
63
   }
61
 
64