Patch from Bill so that Shift-Tab works on all systems.
git-svn-id: file:///fltk/svn/fltk/trunk@239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
ec2a5e3a19
commit
a2a0be6e1c
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Group.cxx,v 1.6 1999/01/07 19:17:20 mike Exp $"
|
||||
// "$Id: Fl_Group.cxx,v 1.7 1999/01/24 15:28:58 mike Exp $"
|
||||
//
|
||||
// Group widget for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@ -152,7 +152,9 @@ int Fl_Group::handle(int event) {
|
||||
int navkey() {
|
||||
switch (Fl::event_key()) {
|
||||
case FL_Tab:
|
||||
return (Fl::event_state(FL_SHIFT) ? FL_Left : FL_Right);
|
||||
if (!Fl::event_state(FL_SHIFT)) return FL_Right;
|
||||
case 0xfe20: // XK_ISO_Left_Tab
|
||||
return FL_Left;
|
||||
case FL_Right:
|
||||
return FL_Right;
|
||||
case FL_Left:
|
||||
@ -466,5 +468,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& w) const {
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Group.cxx,v 1.6 1999/01/07 19:17:20 mike Exp $".
|
||||
// End of "$Id: Fl_Group.cxx,v 1.7 1999/01/24 15:28:58 mike Exp $".
|
||||
//
|
||||
|
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Input.cxx,v 1.9 1999/01/13 15:47:27 mike Exp $"
|
||||
// "$Id: Fl_Input.cxx,v 1.10 1999/01/24 15:28:59 mike Exp $"
|
||||
//
|
||||
// Input widget for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@ -289,6 +289,7 @@ int Fl_Input::handle(int event) {
|
||||
up_down_position(size());
|
||||
break;
|
||||
case FL_Tab:
|
||||
case 0xfe20: // XK_ISO_Left_Tab
|
||||
position(size(),0);
|
||||
break;
|
||||
}
|
||||
@ -329,5 +330,5 @@ Fl_Input::Fl_Input(int x, int y, int w, int h, const char *l)
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Input.cxx,v 1.9 1999/01/13 15:47:27 mike Exp $".
|
||||
// End of "$Id: Fl_Input.cxx,v 1.10 1999/01/24 15:28:59 mike Exp $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user