From 0bd9018d649616ec81430bc5c3a2ad2b4f46575a Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 18 Feb 2000 07:11:09 +0000 Subject: Fixed the Ctrl+P shortcut problem reported by dalitz@infotech.de The previous keystroke is not confused with a navigation control key when the window focus changes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Fl_Input.cxx') diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index f7c5656c5..dd573150c 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Input.cxx,v 1.10.2.4 1999/10/30 20:21:29 bill Exp $" +// "$Id: Fl_Input.cxx,v 1.10.2.5 2000/02/18 07:11:09 bill Exp $" // // Input widget for the Fast Light Tool Kit (FLTK). // @@ -149,7 +149,8 @@ int Fl_Input::handle_key() { } } - if (Fl::event_state(FL_ALT|FL_META)) { // reserved for shortcuts + if (Fl::event_state(FL_ALT|FL_META) + && !(Fl::event_length() && (key&128))) { // reserved for shortcuts compose = pcompose; return 0; } @@ -345,5 +346,5 @@ Fl_Input::Fl_Input(int x, int y, int w, int h, const char *l) } // -// End of "$Id: Fl_Input.cxx,v 1.10.2.4 1999/10/30 20:21:29 bill Exp $". +// End of "$Id: Fl_Input.cxx,v 1.10.2.5 2000/02/18 07:11:09 bill Exp $". // -- cgit v1.2.3