diff --git a/FL/Fl_Value_SliderX.C b/FL/Fl_Value_SliderX.C index e084516..27c0c9d 100644 --- a/FL/Fl_Value_SliderX.C +++ b/FL/Fl_Value_SliderX.C @@ -42,17 +42,6 @@ void Fl_Value_SliderX::input_cb(Fl_Widget*, void* v) { { t.value_damage(); t.do_callback(); - -// Fl::focus(NULL); - for ( Fl_Widget *p = t.parent(); p; p = p->parent() ) - { - if ( p->visible_focus() ) - { - p->take_focus(); - break; - } - } - } } } @@ -86,9 +75,6 @@ Fl_Value_SliderX::Fl_Value_SliderX(int X, int Y, int W, int H, const char*l) input.parent((Fl_Group *)this); // kludge! input.callback(input_cb, this); input.when(FL_WHEN_ENTER_KEY); - /* box(input.box()); */ - /* color(input.color()); */ - /* selection_color(input.selection_color()); */ align(FL_ALIGN_LEFT); value_damage(); textsize(9); @@ -216,9 +202,10 @@ int Fl_Value_SliderX::handle(int event) { input_cb(&input,this); return 1; } + case FL_PASTE: + return 0; case FL_SHORTCUT: return input.handle(event); - } DEFAULT: