From 1e141137f3a8f420bad5f11c98b460709bef2de3 Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Wed, 17 May 2006 02:36:27 +0000 Subject: [PATCH] Bug 260527. More fixes for xul radio button accesskeys. r=mconnor, sr=neil --- suite/common/pref/pref-navigator.js | 8 ++++---- suite/locales/en-US/chrome/common/pref/pref-navigator.dtd | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/suite/common/pref/pref-navigator.js b/suite/common/pref/pref-navigator.js index 0ccbd8869ad..c35a5212b32 100644 --- a/suite/common/pref/pref-navigator.js +++ b/suite/common/pref/pref-navigator.js @@ -249,8 +249,6 @@ function init() gData.navigatorData = navigatorData; - setPageAccessKeys(document.getElementById("behaviourDeck").firstChild); - prefWindow.registerOKCallbackFunc(doOnOk); } @@ -267,6 +265,8 @@ function Startup() setHomePageValue(navigatorData.groupIsSet); updateHomePageButtons(); + + setPageAccessKeys(document.getElementById("behaviourDeck").firstChild); } function doOnOk() @@ -300,14 +300,14 @@ function setPageAccessKeys(group) { var nodes = group.childNodes; for (var i = 0; i < nodes.length; ++i) - nodes[i].setAttribute("accesskey", nodes[i].getAttribute("ak")); + nodes[i].accessKey = nodes[i].getAttribute("ak"); } function removePageAccessKeys(group) { var nodes = group.childNodes; for (var i = 0; i < nodes.length; ++i) - nodes[i].removeAttribute("accesskey"); + nodes[i].accessKey = ''; } function switchPage(index) diff --git a/suite/locales/en-US/chrome/common/pref/pref-navigator.dtd b/suite/locales/en-US/chrome/common/pref/pref-navigator.dtd index b2705b028f6..b9cbd234758 100644 --- a/suite/locales/en-US/chrome/common/pref/pref-navigator.dtd +++ b/suite/locales/en-US/chrome/common/pref/pref-navigator.dtd @@ -8,7 +8,7 @@ - +