зеркало из https://github.com/mozilla/gecko-dev.git
bug 618343 - Form default buttons don't work in landscape mode r=mwu a=blocking-fennec
--HG-- extra : rebase_source : ee06ef589fad47b8b571bdfad32c967f3c3271d7
This commit is contained in:
Родитель
8b9aaead5d
Коммит
84adb8f3e5
|
@ -303,6 +303,7 @@ class GeckoSurfaceView
|
|||
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
|
||||
outAttrs.inputType = InputType.TYPE_CLASS_TEXT;
|
||||
outAttrs.imeOptions = EditorInfo.IME_ACTION_NONE;
|
||||
outAttrs.actionLabel = null;
|
||||
mKeyListener = TextKeyListener.getInstance();
|
||||
|
||||
if (mIMEState == IME_STATE_PASSWORD)
|
||||
|
@ -339,8 +340,9 @@ class GeckoSurfaceView
|
|||
outAttrs.imeOptions = EditorInfo.IME_ACTION_SEARCH;
|
||||
else if (mIMEActionHint.equalsIgnoreCase("send"))
|
||||
outAttrs.imeOptions = EditorInfo.IME_ACTION_SEND;
|
||||
else
|
||||
else if (mIMEActionHint != null && mIMEActionHint.length() != 0)
|
||||
outAttrs.actionLabel = mIMEActionHint;
|
||||
|
||||
inputConnection.reset();
|
||||
return inputConnection;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче