Fixed special handling for ISO back-tab keycode (STR #2369)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-10-30 19:56:20 +00:00
parent 6017a6fae6
commit 8e30c66a92
7 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,6 @@
CHANGES IN FLTK 1.3.0
- Fixed special handling for ISO back-tab keycode (STR #2369)
- Fixed wrong relative path (STR #2384)
- Fixed static allocation in Fl_Tabs (STR #2370)
- Fixed Fl_Widget::measure_label() to const (STR #2406)

View File

@ -1284,8 +1284,6 @@ int Fl_Window_Type::handle(int event) {
((Fl_Window*)o)->hide();
return 1;
case 0xFE20: // backtab
backtab = 1;
case FL_Tab: {
if (Fl::event_state(FL_SHIFT)) backtab = 1;
// find current child:

View File

@ -133,7 +133,6 @@ static int navkey() {
break;
case FL_Tab:
if (!Fl::event_state(FL_SHIFT)) return FL_Right;
case 0xfe20: // XK_ISO_Left_Tab
return FL_Left;
case FL_Right:
return FL_Right;

View File

@ -500,7 +500,6 @@ int Fl_Input::handle(int event) {
up_down_position(line_start(size()));
break;
case FL_Tab:
case 0xfe20: // XK_ISO_Left_Tab
position(size(),0);
break;
default:

View File

@ -660,7 +660,6 @@ int menuwindow::early_hide_handle(int e) {
case FL_KEYBOARD:
switch (Fl::event_key()) {
case FL_BackSpace:
case 0xFE20: // backtab
BACKTAB:
if (!backward(pp.menu_number)) {pp.item_number = -1;backward(pp.menu_number);}
return 1;

View File

@ -488,8 +488,7 @@ int Fl_Tree::handle(int e) {
break;
}
case FL_Left: // received focus via LEFT or UP?
case FL_Up:
case 0xfe20: { // XK_ISO_Left_Tab
case FL_Up: { // XK_ISO_Left_Tab
set_item_focus(next_visible_item(0, FL_Up));
break;
}

View File

@ -1254,6 +1254,10 @@ int fl_handle(const XEvent& thisevent)
Fl::e_original_keysym = (int)keysym;
}
Fl::e_keysym = int(keysym);
// replace XK_ISO_Left_Tab (Shift-TAB) with FL_Tab (modifier flags are set correctly by X11)
if (Fl::e_keysym == 0xfe20) Fl::e_keysym = FL_Tab;
set_event_xy();
Fl::e_is_click = 0;
break;}