Fixed Tab key to wrap around menu bars (STR #1877)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
fc60a90a67
commit
ac55d8490c
1
CHANGES
1
CHANGES
@ -6,6 +6,7 @@ CHANGES IN FLTK 1.1.8
|
||||
STR #1742, STR #1777, STR #1794, STR #1827, STR #1843,
|
||||
STR #1796, STR #1815, STR #1726, STR #1753, STR #1855,
|
||||
STR #1862, STR #1867, STR #1874)
|
||||
- Fixed Tab key to wrap around menu bars (STR #1877)
|
||||
- Fixed possible timer leak in Scrollbar (STR #1880)
|
||||
- Added documentation about the potential limitations
|
||||
of Fl::grab on newer operating systems (STR #1747)
|
||||
|
@ -634,8 +634,14 @@ int menuwindow::early_hide_handle(int e) {
|
||||
case FL_Tab:
|
||||
if (Fl::event_shift()) goto BACKTAB;
|
||||
case FL_Down:
|
||||
if (pp.menu_number || !pp.menubar) forward(pp.menu_number);
|
||||
else if (pp.menu_number < pp.nummenus-1) forward(pp.menu_number+1);
|
||||
if (pp.menu_number || !pp.menubar) {
|
||||
if (!forward(pp.menu_number) && Fl::event_key()==FL_Tab) {
|
||||
pp.item_number = -1;
|
||||
forward(pp.menu_number);
|
||||
}
|
||||
} else if (pp.menu_number < pp.nummenus-1) {
|
||||
forward(pp.menu_number+1);
|
||||
}
|
||||
return 1;
|
||||
case FL_Right:
|
||||
if (pp.menubar && (pp.menu_number<=0 || pp.menu_number==1 && pp.nummenus==2))
|
||||
|
Loading…
Reference in New Issue
Block a user