moving from using 32 to using nsIDOMKeyEvent::DOM_VK_SPACE to make the code more clear as per brendan's suggestion.

This commit is contained in:
arik%netscape.com 2001-05-03 22:26:06 +00:00
Родитель c5d5aa37a5
Коммит bdbe6b224a
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -279,9 +279,8 @@ nsXBLPrototypeHandler::ExecuteHandler(nsIDOMEventReceiver* aReceiver, nsIDOMEven
nsAutoString type;
GetEventType (type);
// 32 is for the space key, there must be a better way to do this
if (type == NS_LITERAL_STRING("keypress") &&
mDetail == 32 &&
mDetail == nsIDOMKeyEvent::DOM_VK_SPACE &&
mDetail2 == 1) {
// get the focused element so that we can pageDown only at
// certain times.