зеркало из https://github.com/mozilla/gecko-dev.git
Bug 857217 - Put focus in about:home if it is visible instead of always sending it to the layerview. r=Cwiiis
This commit is contained in:
Родитель
222af36914
Коммит
f41d028a0f
|
@ -452,7 +452,11 @@ abstract public class BrowserApp extends GeckoApp
|
|||
// put the focus on the layerview and carry on
|
||||
LayerView layerView = mLayerView;
|
||||
if (layerView != null && !layerView.hasFocus() && GamepadUtils.isPanningControl(event)) {
|
||||
layerView.requestFocus();
|
||||
if (Boolean.FALSE.equals(mAboutHomeShowing)) {
|
||||
layerView.requestFocus();
|
||||
} else {
|
||||
mAboutHomeContent.requestFocus();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче