From f2d726ae3f7ad4a1a1853c1e41c63a28fec71055 Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Thu, 7 Jul 2005 17:10:08 +0000 Subject: [PATCH] Bug 299122. Support STATE_CHECKABLE on XUL menuitems and listitems. r=parente, sr=tor, a=asa --- accessible/src/xul/nsXULMenuAccessible.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accessible/src/xul/nsXULMenuAccessible.cpp b/accessible/src/xul/nsXULMenuAccessible.cpp index 1ad24cec0d00..c4068a9a1455 100644 --- a/accessible/src/xul/nsXULMenuAccessible.cpp +++ b/accessible/src/xul/nsXULMenuAccessible.cpp @@ -78,10 +78,10 @@ NS_IMETHODIMP nsXULMenuitemAccessible::GetState(PRUint32 *_retval) element->GetAttribute(NS_LITERAL_STRING("type"), menuItemType); if (!menuItemType.IsEmpty()) { - // Selectable? + // Checkable? if (menuItemType.EqualsIgnoreCase("radio") || menuItemType.EqualsIgnoreCase("checkbox")) - *_retval |= STATE_SELECTABLE; + *_retval |= STATE_CHECKABLE; // Checked? nsAutoString checkValue;