зеркало из https://github.com/mozilla/pjs.git
bug 476897 - add pref to disable caret browsing/f7 - r=gavin
This commit is contained in:
Родитель
dd7e7418a2
Коммит
5c302ab936
|
@ -154,6 +154,8 @@ pref("gfx.downloadable_fonts.enabled", true);
|
|||
pref("accessibility.browsewithcaret", false);
|
||||
pref("accessibility.warn_on_browsewithcaret", true);
|
||||
|
||||
pref("accessibility.browserwithcaret_shortcut.enabled", true);
|
||||
|
||||
#ifndef XP_MACOSX
|
||||
// Tab focus model bit field:
|
||||
// 1 focuses text controls, 2 focuses other form elements, 4 adds links.
|
||||
|
|
|
@ -1002,6 +1002,10 @@
|
|||
if (event.getPreventDefault() || !event.isTrusted)
|
||||
return;
|
||||
|
||||
var isEnabled = this.mPrefs.getBoolPref("accessibility.browsewithcaret_shortcut.enabled");
|
||||
if (!isEnabled)
|
||||
return;
|
||||
|
||||
// Toggle browse with caret mode
|
||||
var browseWithCaretOn = false;
|
||||
var warn = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче