Keyboard shortcuts that open a window now also close it (Issue 88). Fixed a recent bug that made contextual help in FX window only work once.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1004 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
7
help.c
7
help.c
@@ -585,11 +585,12 @@ void Window_help(int section, const char *sub_section)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (Is_shortcut(Key,0x100+BUTTON_HELP))
|
||||
clicked_button=1;
|
||||
}
|
||||
while ((clicked_button!=1) && (Key!=SDLK_RETURN));
|
||||
|
||||
if(Key==SDLK_RETURN) Key=0;
|
||||
Key=0;
|
||||
Close_window();
|
||||
Unselect_button(BUTTON_HELP);
|
||||
Display_cursor();
|
||||
@@ -698,6 +699,8 @@ void Button_Stats(void)
|
||||
do
|
||||
{
|
||||
clicked_button=Window_clicked_button();
|
||||
if (Is_shortcut(Key,0x200+BUTTON_HELP))
|
||||
clicked_button=1;
|
||||
}
|
||||
while ( (clicked_button!=1) && (Key!=SDLK_RETURN) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user