summaryrefslogtreecommitdiff
path: root/src/Fl_Slider.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-08-17 14:41:20 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-08-17 14:41:20 +0000
commit6391946be0ae7200d893f70f8152cc1e7676faaf (patch)
tree7a9279b7c0eab97b3072df35306477939d1701ee /src/Fl_Slider.cxx
parent1cc3338a108cdfac480745e3dddb68a820777a46 (diff)
Fixed callback sometimes not calle when using the arrow keys in an Fl_Slider (STR #1333)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Slider.cxx')
-rw-r--r--src/Fl_Slider.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Slider.cxx b/src/Fl_Slider.cxx
index 0b58e924f..874ffa102 100644
--- a/src/Fl_Slider.cxx
+++ b/src/Fl_Slider.cxx
@@ -241,21 +241,25 @@ int Fl_Slider::handle(int event, int X, int Y, int W, int H) {
switch (Fl::event_key()) {
case FL_Up:
if (horizontal()) return 0;
+ handle_push();
handle_drag(clamp(increment(value(),-1)));
handle_release();
return 1;
case FL_Down:
if (horizontal()) return 0;
+ handle_push();
handle_drag(clamp(increment(value(),1)));
handle_release();
return 1;
case FL_Left:
if (!horizontal()) return 0;
+ handle_push();
handle_drag(clamp(increment(value(),-1)));
handle_release();
return 1;
case FL_Right:
if (!horizontal()) return 0;
+ handle_push();
handle_drag(clamp(increment(value(),1)));
handle_release();
return 1;