Adding spacebar to list of keys that will scroll page.

This commit is contained in:
joki%netscape.com 1999-04-06 21:37:34 +00:00
parent 23e04144c4
commit 9919d95d5a

View File

@ -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: