summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Editor.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-04-23 20:08:39 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-04-23 20:08:39 +0000
commit433dec6b92526bd28dc98d8f7e7cba4fc77bf3e7 (patch)
tree5b807b54799ce066517dc3a28c2014c2f44a4429 /src/Fl_Text_Editor.cxx
parentb812f9701f92fe1676504c8f36a75b68c4453903 (diff)
Changed Makefile in src to use 1.3 instead of 1.1 (STR #1922). Fixed minor issue with handling of shortcuts in text input fields.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
-rw-r--r--src/Fl_Text_Editor.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx
index 6cfc0240d..5c2ef5996 100644
--- a/src/Fl_Text_Editor.cxx
+++ b/src/Fl_Text_Editor.cxx
@@ -486,9 +486,11 @@ int Fl_Text_Editor::handle(int event) {
case FL_SHORTCUT:
if (!(shortcut() ? Fl::test_shortcut(shortcut()) : test_shortcut()))
return 0;
- if (Fl::visible_focus() && handle(FL_FOCUS))
+ if (Fl::visible_focus() && handle(FL_FOCUS)) {
Fl::focus(this);
- return 1;
+ return 1;
+ }
+ break;
}
return Fl_Text_Display::handle(event);