diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-09-15 08:24:34 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-09-15 08:24:34 +0000 |
| commit | ff94d41c51ff10b3753a62f4fe57d4897d4f6a36 (patch) | |
| tree | 3398e05dd1f681ac07f4746539446f538399fee8 /src/Fl_Text_Display.cxx | |
| parent | 27217f9a740d690b2c36644c5e7d297604c03231 (diff) | |
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
Diffstat (limited to 'src/Fl_Text_Display.cxx')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index a61fc5778..a38cd9774 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -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; } |
