mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 697773 - Cannot type in AwesomeBar URL bar with hard keyboard. r=blassey
This commit is contained in:
parent
04ddafac5f
commit
81021f9877
@ -50,6 +50,7 @@ import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
@ -132,6 +133,14 @@ public class AwesomeBar extends Activity {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
mText.setOnTouchListener(new View.OnTouchListener() {
|
||||
public boolean onTouch(View v, MotionEvent event) {
|
||||
if (event.getAction() == MotionEvent.ACTION_DOWN)
|
||||
mText.requestFocusFromTouch();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -148,6 +157,12 @@ public class AwesomeBar extends Activity {
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWindowFocusChanged(boolean hasFocus) {
|
||||
if (hasFocus)
|
||||
mText.requestFocusFromTouch();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
Loading…
Reference in New Issue
Block a user