mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3776 from omnivore-app/fix/android-notes
Keyboard options on the note view
This commit is contained in:
commit
f03ae00a77
1 changed files with 8 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import android.content.Context
|
|||
import androidx.compose.foundation.*
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.text.KeyboardOptions
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.*
|
||||
import androidx.compose.material3.*
|
||||
|
|
@ -42,6 +43,7 @@ import app.omnivore.omnivore.core.database.entities.Highlight
|
|||
import app.omnivore.omnivore.feature.theme.OmnivoreTheme
|
||||
import androidx.compose.runtime.saveable.rememberSaveable
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.input.KeyboardCapitalization
|
||||
|
||||
|
||||
fun notebookMD(notes: List<Highlight>, highlights: List<Highlight>): String {
|
||||
|
|
@ -185,11 +187,17 @@ fun EditNoteModal(initialValue: String?, onDismiss: (save: Boolean, text: String
|
|||
.padding(top = paddingValues.calculateTopPadding())
|
||||
.focusRequester(focusRequester)
|
||||
.fillMaxSize(),
|
||||
keyboardOptions = KeyboardOptions.Default.copy(
|
||||
autoCorrect = true,
|
||||
capitalization = KeyboardCapitalization.Sentences
|
||||
),
|
||||
value = annotation.value, onValueChange = { annotation.value = it },
|
||||
colors = TextFieldDefaults.textFieldColors(
|
||||
focusedTextColor = MaterialTheme.colorScheme.onSurface,
|
||||
unfocusedTextColor = MaterialTheme.colorScheme.onSurface,
|
||||
)
|
||||
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue