Android Studio Edit Text 在模拟器中打印错误的输入

Android Studio Edit Text prints wrong input in the Emulator

当我从我的笔记本电脑键盘向编辑文本提供输入时,它会打印(输入错误)行话。 例如,从我的键盘输入 "London" 会打印出“øóñðóñ”。数字“12345”打印为“²²¤€”

我试过多次更改编辑文本但没有用。来自模拟器键盘的输入打印得很好。几个小时前没有这样的错误。

编辑文本的代码xml:

<EditText
    android:id="@+id/cityText"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="80dp"
    android:layout_marginLeft="80dp"
    android:layout_marginTop="40dp"
    android:layout_marginEnd="80dp"
    android:layout_marginRight="80dp"
    android:ems="10"
    android:inputType="textPersonName"
    android:text="Name"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView" />

解决了。 Ctrl+Alt+Shift+向左箭头键的某些组合有效!