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_Text_Editor.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Fl_Text_Editor.cxx') diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index 291753d9c..745490e0f 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -1,7 +1,7 @@ // // "$Id$" // -// Copyright 2001-2005 by Bill Spitzak and others. +// Copyright 2001-2006 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under // the LGPL for the FLTK library granted by Mark Edel. // @@ -30,6 +30,7 @@ #include "flstring.h" #include #include +#include #include #include @@ -446,6 +447,7 @@ int Fl_Text_Editor::handle(int event) { return 1; case FL_KEYBOARD: + if (active_r() && window()) window()->cursor(FL_CURSOR_NONE); return handle_key(); case FL_PASTE: -- cgit v1.2.3