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:
Brad Lassey 2010-12-15 12:37:52 -08:00
Родитель 8b9aaead5d
Коммит 84adb8f3e5
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;
}