mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
Bug 756529 - Move accessfu setting to accessibility.accessfu.activate. r=davidb
This commit is contained in:
parent
c53c69acbb
commit
74b2234cf0
@ -39,12 +39,12 @@ var AccessFu = {
|
||||
this.presenters = [];
|
||||
|
||||
this.prefsBranch = Cc['@mozilla.org/preferences-service;1']
|
||||
.getService(Ci.nsIPrefService).getBranch('accessibility.');
|
||||
this.prefsBranch.addObserver('accessfu', this, false);
|
||||
.getService(Ci.nsIPrefService).getBranch('accessibility.accessfu.');
|
||||
this.prefsBranch.addObserver('activate', this, false);
|
||||
|
||||
let accessPref = ACCESSFU_DISABLE;
|
||||
try {
|
||||
accessPref = this.prefsBranch.getIntPref('accessfu');
|
||||
accessPref = this.prefsBranch.getIntPref('activate');
|
||||
} catch (x) {
|
||||
}
|
||||
|
||||
@ -176,8 +176,8 @@ var AccessFu = {
|
||||
this._disable();
|
||||
break;
|
||||
case 'nsPref:changed':
|
||||
if (aData == 'accessfu')
|
||||
this._processPreferences(this.prefsBranch.getIntPref('accessfu'));
|
||||
if (aData == 'activate')
|
||||
this._processPreferences(this.prefsBranch.getIntPref('activate'));
|
||||
break;
|
||||
case 'accessible-event':
|
||||
let event;
|
||||
|
@ -760,7 +760,7 @@ pref("ui.scrolling.min_scrollable_distance", -1);
|
||||
pref("ui.zooming.animation_frames", "");
|
||||
|
||||
// Enable accessibility mode if platform accessibility is enabled.
|
||||
pref("accessibility.accessfu", 2);
|
||||
pref("accessibility.accessfu.activate", 2);
|
||||
|
||||
// Mobile manages state by autodetection
|
||||
pref("network.manage-offline-status", true);
|
||||
|
Loading…
Reference in New Issue
Block a user