зеркало из https://github.com/mozilla/pjs.git
Bug 557642 - An option should be added to disable auto-rotation [r=vingtetun]
This commit is contained in:
Родитель
ab3a149abf
Коммит
28f0b03ef2
|
@ -44,6 +44,8 @@ pref("browser.startup.homepage", "about:firstrun");
|
|||
|
||||
pref("browser.tabs.warnOnClose", true);
|
||||
|
||||
pref("toolkit.screen.lock", false);
|
||||
|
||||
/* use custom widget for html:select */
|
||||
pref("ui.use_native_popup_windows", true);
|
||||
|
||||
|
|
|
@ -751,6 +751,7 @@ var BrowserUI = {
|
|||
case "cmd_sanitize":
|
||||
case "cmd_zoomin":
|
||||
case "cmd_zoomout":
|
||||
case "cmd_lockscreen":
|
||||
isSupported = true;
|
||||
break;
|
||||
default:
|
||||
|
@ -856,6 +857,12 @@ var BrowserUI = {
|
|||
case "cmd_zoomout":
|
||||
Browser.zoom(1);
|
||||
break;
|
||||
case "cmd_lockscreen":
|
||||
{
|
||||
let locked = gPrefService.getBoolPref("toolkit.screen.lock");
|
||||
gPrefService.setBoolPref("toolkit.screen.lock", !locked);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -119,12 +119,15 @@
|
|||
<command id="cmd_close" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_quit" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_menu" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_fullscreen" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_actions" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_panel" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_sanitize" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
|
||||
<!-- screen/display -->
|
||||
<command id="cmd_fullscreen" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_zoomin" observes="bcast_contentShowing" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_zoomout" observes="bcast_contentShowing" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
<command id="cmd_lockscreen" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
|
||||
<!-- scrolling -->
|
||||
<command id="cmd_scrollPageUp" oncommand="CommandUpdater.doCommand(this.id);"/>
|
||||
|
@ -154,6 +157,7 @@
|
|||
<key id="key_reload" keycode="VK_F5" command="cmd_reload"/>
|
||||
<key id="key_forceReload" keycode="VK_F5" modifiers="shift" command="cmd_forceReload"/>
|
||||
#else
|
||||
<key id="key_lockscreen" key="o" modifiers="accel,shift" command="cmd_lockscreen"/>
|
||||
<!-- F5 on maemo is "home" which is a task switching key -->
|
||||
#endif
|
||||
<key id="key_reload2" key="r" modifiers="accel" command="cmd_reload"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче