mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
Fix CTRL+something "-" - wasn't tracking the proper CTRL key
state (STR #264) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.5rc1
|
CHANGES IN FLTK 1.1.5rc1
|
||||||
|
|
||||||
|
- Fixed the X11 CTRL + "-" detection code to properly
|
||||||
|
track the state of the CTRL key (STR #264)
|
||||||
- Fl_File_Icon::load_system_icons() didn't support KDE
|
- Fl_File_Icon::load_system_icons() didn't support KDE
|
||||||
3.x (STR #299)
|
3.x (STR #299)
|
||||||
- WIN32's scandir() emulation did not allocate enough
|
- WIN32's scandir() emulation did not allocate enough
|
||||||
|
|||||||
+5
-3
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_x.cxx,v 1.24.2.24.2.31 2004/02/26 03:06:41 easysw Exp $"
|
// "$Id: Fl_x.cxx,v 1.24.2.24.2.32 2004/02/29 22:16:11 easysw Exp $"
|
||||||
//
|
//
|
||||||
// X specific code for the Fast Light Tool Kit (FLTK).
|
// X specific code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -756,7 +756,9 @@ int fl_handle(const XEvent& thisevent)
|
|||||||
// easier to program shortcuts and is Windoze-compatable:
|
// easier to program shortcuts and is Windoze-compatable:
|
||||||
keysym = XKeycodeToKeysym(fl_display, keycode, 0);
|
keysym = XKeycodeToKeysym(fl_display, keycode, 0);
|
||||||
}
|
}
|
||||||
if (Fl::event_state(FL_CTRL) && keysym == '-') buffer[0] = 0x1f; // ^_
|
// MRS: Can't use Fl::event_state(FL_CTRL) since the state is not
|
||||||
|
// set until set_event_xy() is called later...
|
||||||
|
if ((xevent.xkey.state & ControlMask) && keysym == '-') buffer[0] = 0x1f; // ^_
|
||||||
buffer[len] = 0;
|
buffer[len] = 0;
|
||||||
Fl::e_text = buffer;
|
Fl::e_text = buffer;
|
||||||
Fl::e_length = len;
|
Fl::e_length = len;
|
||||||
@@ -1268,5 +1270,5 @@ void Fl_Window::make_current() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.31 2004/02/26 03:06:41 easysw Exp $".
|
// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.32 2004/02/29 22:16:11 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user