From 09a1c11ac15edb5d956dc61733a234eff0ff3a5b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 11 Oct 2006 01:01:02 +0000 Subject: Fl_Input and Fl_Text_Editor now hide the mouse pointer when typing into them (STR #1466) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Fl_Input.cxx') diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index ef12c7487..30a198d0d 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -3,7 +3,7 @@ // // Input widget for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2005 by Bill Spitzak and others. +// Copyright 1998-2006 by Bill Spitzak and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -348,7 +349,11 @@ int Fl_Input::handle(int event) { else position(position()); return (1); - } else return handle_key(); + } else { + if (active_r() && window()) window()->cursor(FL_CURSOR_NONE); + + return handle_key(); + } case FL_PUSH: if (Fl::dnd_text_ops()) { -- cgit v1.2.3