Fix for STR #2628: keep focus within an Fl_Tab after moving to another window and back.
This had been partially fixed following STR #2552. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
bcdf4a4be1
commit
b588a8d399
@ -217,11 +217,8 @@ int Fl_Tabs::handle(int event) {
|
||||
Fl::event() == FL_FOCUS ||
|
||||
Fl::event() == FL_UNFOCUS) {
|
||||
redraw_tabs();
|
||||
#ifndef __APPLE__
|
||||
// fix for STR #2552
|
||||
if (Fl::event() == FL_FOCUS) return Fl_Group::handle(event);
|
||||
#endif
|
||||
if (Fl::event() == FL_FOCUS || Fl::event() == FL_UNFOCUS) return 0;
|
||||
if (Fl::event() == FL_UNFOCUS) return 0;
|
||||
else return 1;
|
||||
} else return Fl_Group::handle(event);
|
||||
case FL_KEYBOARD:
|
||||
|
Loading…
Reference in New Issue
Block a user