summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Slider.cxx4
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 125203189..1bc22cc73 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.8
+ - Fixed callback not called when using arrow keys
+ in Fl_Slider (STR #1333)
- Changing the shorcut of a widget in fluid now marks
the document as dirty (STR #1382)
- Fl_Text_Editor now correctly handles middle mouse
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;