From 9a0d9abb2455870aeb1ca31855f5d4f3d5eb262e Mon Sep 17 00:00:00 2001 From: "joki%netscape.com" Date: Tue, 6 Apr 1999 21:37:34 +0000 Subject: [PATCH] Adding spacebar to list of keys that will scroll page. git-svn-id: svn://10.0.0.236/trunk@26545 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/view/src/nsScrollingView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/view/src/nsScrollingView.cpp b/mozilla/view/src/nsScrollingView.cpp index 310dfd6c882..d6c4a199903 100644 --- a/mozilla/view/src/nsScrollingView.cpp +++ b/mozilla/view/src/nsScrollingView.cpp @@ -728,7 +728,8 @@ NS_IMETHODIMP nsScrollingView :: HandleEvent(nsGUIEvent *aEvent, PRUint32 aEvent { case NS_VK_PAGE_DOWN: case NS_VK_PAGE_UP: - ScrollByPages((keyEvent->keyCode == NS_VK_PAGE_DOWN) ? 1 : -1); + case NS_VK_SPACE: + ScrollByPages((keyEvent->keyCode != NS_VK_PAGE_UP) ? 1 : -1); break; case NS_VK_DOWN: