Browse Source

Mixer: Keep new sliders from swallowing Ctrl+V.

tags/non-daw-v1.2.0
Jonathan Moore Liles 10 years ago
parent
commit
97573f0299
1 changed files with 2 additions and 15 deletions
  1. +2
    -15
      FL/Fl_Value_SliderX.C

+ 2
- 15
FL/Fl_Value_SliderX.C View File

@@ -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:


Loading…
Cancel
Save