diff options
| author | Matthias Melcher <git@matthiasm.com> | 2021-12-10 15:16:35 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2021-12-10 15:16:42 +0100 |
| commit | 6d7faa93e10db58be531a630421555b4fe50f9f3 (patch) | |
| tree | 8655345e0a0b80e3b0ceb01824fd7f9a0bfc7661 /fluid | |
| parent | 5655f79d630ea2a8e286c54be0573afd426b443d (diff) | |
Fluid: added keyboard shortcuts documentation.
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 5 | ||||
| -rw-r--r-- | fluid/widget_panel.cxx | 2 | ||||
| -rw-r--r-- | fluid/widget_panel.fl | 6 |
3 files changed, 6 insertions, 7 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index ea2e4da54..e910b7153 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -1322,9 +1322,8 @@ int Fl_Window_Type::handle(int event) { case FL_Up: dx = 0; dy = -1; goto ARROW; case FL_Down: dx = 0; dy = +1; goto ARROW; ARROW: - // for some reason BOTTOM/TOP are swapped... should be fixed... - drag = (Fl::event_state(FL_SHIFT)) ? (RIGHT|TOP) : DRAG; - if (Fl::event_state(FL_CTRL)) {dx *= gridx; dy *= gridy;} + drag = (Fl::event_state(FL_SHIFT)) ? (RIGHT|BOTTOM) : DRAG; + if (Fl::event_state(FL_COMMAND)) {dx *= gridx; dy *= gridy;} moveallchildren(); drag = 0; return 1; diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx index f1f1e5394..7760654d9 100644 --- a/fluid/widget_panel.cxx +++ b/fluid/widget_panel.cxx @@ -107,7 +107,6 @@ Fl_Double_Window* make_widget_panel() { o->labelsize(11); o->callback((Fl_Callback*)propagate_load); o->when(FL_WHEN_NEVER); - o->hide(); { Fl_Group* o = new Fl_Group(95, 40, 309, 20, "Label:"); o->labelfont(1); o->labelsize(11); @@ -514,6 +513,7 @@ ive to the origin at construction time"); o->labelsize(11); o->callback((Fl_Callback*)propagate_load); o->when(FL_WHEN_NEVER); + o->hide(); { Fl_Group* o = new Fl_Group(95, 40, 309, 20, "Label Font:"); o->labelfont(1); o->labelsize(11); diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl index 482e229ea..f4f3bd3a2 100644 --- a/fluid/widget_panel.fl +++ b/fluid/widget_panel.fl @@ -40,7 +40,7 @@ Function {make_widget_panel()} { Fl_Group {} { label GUI callback propagate_load - xywh {10 30 400 330} labelsize 11 when 0 hide resizable + xywh {10 30 400 330} labelsize 11 when 0 resizable } { Fl_Group {} { label {Label:} @@ -436,8 +436,8 @@ Use Ctrl-J for newlines.} xywh {95 285 310 20} labelfont 1 labelsize 11 textsize } Fl_Group {} { label Style - callback propagate_load selected - xywh {10 30 400 330} labelsize 11 when 0 + callback propagate_load + xywh {10 30 400 330} labelsize 11 when 0 hide } { Fl_Group {} { label {Label Font:} |
