Add SetFocus so keyboard navigation works.
git-svn-id: svn://10.0.0.236/trunk@8093 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -531,6 +531,11 @@ nsresult DocumentViewerImpl::MakeWindow(nsNativeWidget aNativeParent,
|
||||
//set frame rate to 25 fps
|
||||
mViewManager->SetFrameRate(25);
|
||||
|
||||
// This SetFocus is necessary so the Arrow Key and Page Key events
|
||||
// go to the scrolled view as soon as the Window is created instead of going to
|
||||
// the browser window (this enables keyboard scrolling of the document)
|
||||
mWindow->SetFocus();
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user