1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-09-16 08:56:40 +02:00

Auto capitalise in text inputs

This commit is contained in:
Laurent Cozic
2017-07-16 17:31:42 +01:00
parent f600689323
commit 576cb345bb

View File

@@ -270,6 +270,7 @@ class NoteScreenComponent extends BaseScreenComponent {
} else {
bodyComponent = (
<TextInput
autoCapitalize="sentences"
autoFocus={true}
style={{flex: 1, textAlignVertical: 'top', fontFamily: 'monospace'}}
multiline={true}
@@ -336,7 +337,7 @@ class NoteScreenComponent extends BaseScreenComponent {
onSaveButtonPress={() => this.saveNoteButton_press()}
/>
<View style={{ flexDirection: 'row' }}>
{ isTodo && <Checkbox checked={!!Number(note.todo_completed)} onChange={(checked) => { this.todoCheckbox_change(checked) }} /> }<TextInput style={{flex:1}} value={note.title} onChangeText={(text) => this.title_changeText(text)} />
{ isTodo && <Checkbox checked={!!Number(note.todo_completed)} onChange={(checked) => { this.todoCheckbox_change(checked) }} /> }<TextInput autoCapitalize="sentences" style={{flex:1}} value={note.title} onChangeText={(text) => this.title_changeText(text)} />
</View>
{ bodyComponent }
{ actionButtonComp }