зеркало из https://github.com/mozilla/gecko-dev.git
Bug 868052 - Show dynamic toolbar when hardware menu button is pressed (on all devices this time). r=lucasr,sriram
This commit is contained in:
Родитель
0a2c0872da
Коммит
8e368ddde3
|
@ -408,8 +408,8 @@ abstract public class GeckoApp
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||||
// Custom Menu should be opened when hardware menu key is pressed.
|
// Handle hardware menu key presses separately so that we can show a custom menu in some cases.
|
||||||
if (Build.VERSION.SDK_INT >= 11 && keyCode == KeyEvent.KEYCODE_MENU) {
|
if (keyCode == KeyEvent.KEYCODE_MENU) {
|
||||||
openOptionsMenu();
|
openOptionsMenu();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче