mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Merge pull request #407 from meshtastic/text-input
use keyboard capitalization settings
This commit is contained in:
commit
850aa0a491
2 changed files with 3 additions and 3 deletions
|
|
@ -57,8 +57,9 @@ class MessagesFragment : Fragment(), Logging {
|
|||
|
||||
// Allows textMultiline with IME_ACTION_SEND
|
||||
private fun EditText.onActionSend(func: () -> Unit) {
|
||||
setImeOptions(EditorInfo.IME_ACTION_SEND)
|
||||
setRawInputType(InputType.TYPE_CLASS_TEXT)
|
||||
imeOptions = EditorInfo.IME_ACTION_SEND
|
||||
InputType.TYPE_TEXT_FLAG_MULTI_LINE
|
||||
setRawInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)
|
||||
setOnEditorActionListener { _, actionId, _ ->
|
||||
|
||||
if (actionId == EditorInfo.IME_ACTION_SEND) {
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@
|
|||
android:id="@+id/messageInputText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textMultiLine"
|
||||
android:maxLength="228"
|
||||
android:text="" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue