зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c5d5aa37a5
Коммит
bdbe6b224a
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче