summaryrefslogtreecommitdiff
path: root/src/Fl_Input_.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-04-08 18:32:16 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-04-08 18:32:16 +0000
commit84950c0af7f9cce03c0afd9895d139f379fa30c9 (patch)
tree76832adb21bd134a80f8922445ed5f59763bc447 /src/Fl_Input_.cxx
parent6fa4abfe545e04186bca73f4d1e12fb7eb091ead (diff)
Fl_Output didn't grab input focus, and so was unable to handle CTRL-C
to copy selected text, and wouldn't know when to redraw itself when it lost focus... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input_.cxx')
-rw-r--r--src/Fl_Input_.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index c9a811e81..ed40d1d48 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.7 2002/03/07 19:22:56 spitzak Exp $"
+// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.8 2002/04/08 18:32:16 easysw Exp $"
//
// Common input widget routines for the Fast Light Tool Kit (FLTK).
//
@@ -696,6 +696,11 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) {
case FL_PUSH:
handle_mouse(X, Y, W, H, Fl::event_state(FL_SHIFT));
+
+ if (Fl::focus() != this) {
+ Fl::focus(this);
+ handle(FL_FOCUS);
+ }
return 1;
case FL_DRAG:
@@ -707,6 +712,7 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) {
copy(0);
return 1;
+// MRS: FL_SELECTIONCLEAR is no longer used...
// case FL_SELECTIONCLEAR:
// minimal_update(mark_, position_);
// mark_ = position_;
@@ -858,5 +864,5 @@ Fl_Input_::~Fl_Input_() {
}
//
-// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.7 2002/03/07 19:22:56 spitzak Exp $".
+// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.8 2002/04/08 18:32:16 easysw Exp $".
//