diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-02-01 23:59:20 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-02-01 23:59:20 +0100 |
| commit | 0698e16a6b154f227dcb4ab135b273af1fa0f5f9 (patch) | |
| tree | f0195a4f4e592c432111f170da40c163794a9a5b | |
| parent | d6294ac2fccab7e7ffdfbf1ef63a059bba46c777 (diff) | |
Fixed Delete key in Fl_Input deleting entire widgets in Fluid (STR #2841).
| -rw-r--r-- | CHANGES.txt | 1 | ||||
| -rw-r--r-- | src/Fl_Input.cxx | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 73895fa44..50f69c61d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -145,6 +145,7 @@ Changes in FLTK 1.4.0 Released: ??? ?? 2019 Bug Fixes - (add new items here) + - Fixed Delete key in Fl_Input deleting entire widgets in Fluid (STR #2841). - Reorganized Fluid Template feature (STR #3336). - Updated Fluid documentation and image (STR #3328). - Duplicating Widget Class in Fluid no longer crashes (STR #3445). diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index d1f76796e..a6a7b53b8 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -177,8 +177,9 @@ int Fl_Input::kf_delete_eol() { int Fl_Input::kf_delete_char_right() { if (readonly()) { fl_beep(); return 1; } - if (mark() != position()) return cut(); - else return cut(1); + if (mark() != position()) cut(); + else cut(1); + return 1; } int Fl_Input::kf_delete_char_left() { |
