mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 00:59:35 -04:00
[Text input] Try to use EditText again
This commit is contained in:
parent
16725dac1c
commit
a0bc431b44
@ -5,7 +5,7 @@ import android.util.*;
|
|||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import android.view.*;
|
import android.view.*;
|
||||||
|
|
||||||
public class CapturedEditText extends TextView
|
public class CapturedEditText extends EditText
|
||||||
{
|
{
|
||||||
public CapturedEditText(Context ctx) {
|
public CapturedEditText(Context ctx) {
|
||||||
this(ctx, null);
|
this(ctx, null);
|
||||||
@ -15,11 +15,6 @@ public class CapturedEditText extends TextView
|
|||||||
super(ctx, attrs);
|
super(ctx, attrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean getDefaultEditable() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||||
AndroidLWJGLKeycode.execKey(event, keyCode, true);
|
AndroidLWJGLKeycode.execKey(event, keyCode, true);
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<net.kdt.pojavlaunch.CapturedEditText
|
<net.kdt.pojavlaunch.CapturedEditText
|
||||||
|
android:imeOptions="flagNoExtractUi"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:id="@+id/main_key_handler"/>
|
android:id="@+id/main_key_handler"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user