In Fl_Text_Display, all unused keyboard events are sent to the scrollbars, so that the user can scroll through text using the usual navigation keys (left, right, up, down, page up, page down)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2006-09-15 08:24:34 +00:00
parent 27217f9a74
commit ff94d41c51
1 changed files with 4 additions and 0 deletions

View File

@ -3232,6 +3232,10 @@ int Fl_Text_Display::handle(int event) {
buffer()->select(0,buffer()->length());
return 1;
}
if (mVScrollBar->handle(event)) return 1;
if (mHScrollBar->handle(event)) return 1;
break;
}