diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-02-18 07:11:09 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-02-18 07:11:09 +0000 |
| commit | 0bd9018d649616ec81430bc5c3a2ad2b4f46575a (patch) | |
| tree | e6f86630a8c5b305f7aea5b9c2b4337271b31513 /src/Fl_Input.cxx | |
| parent | 415db360a1c48dec11ef97857efa575221edc1e2 (diff) | |
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
Diffstat (limited to 'src/Fl_Input.cxx')
| -rw-r--r-- | src/Fl_Input.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 $". // |
