summaryrefslogtreecommitdiff
path: root/src/Fl_Input.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Input.cxx')
-rw-r--r--src/Fl_Input.cxx9
1 files changed, 7 insertions, 2 deletions
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 <stdio.h>
#include <stdlib.h>
#include <FL/Fl.H>
+#include <FL/Fl_Window.H>
#include <FL/Fl_Input.H>
#include <FL/fl_draw.H>
#include <FL/fl_ask.H>
@@ -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()) {