mirror of https://github.com/fltk/fltk
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:
parent
27217f9a74
commit
ff94d41c51
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue