Fix PgUp/PgDn keys in help window
This commit is contained in:
parent
52223e27d7
commit
41eabae6a6
@ -10,6 +10,10 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
- Fix PgUp/PgDn keys in help window (bugreport from Semen Panevin).
|
||||||
|
|
||||||
|
- Fix "Goto Next Area?" menu hotkeys (bugreport from Semen Panevin).
|
||||||
|
|
||||||
+ CPUID support for GNU C builds.
|
+ CPUID support for GNU C builds.
|
||||||
|
|
||||||
! GNwin and RDDTwin project files is added into MSVC6 workspace.
|
! GNwin and RDDTwin project files is added into MSVC6 workspace.
|
||||||
|
@ -244,7 +244,7 @@ static int find_page(long startpos, int pageofs) {
|
|||||||
|
|
||||||
static void disp_cat() {
|
static void disp_cat() {
|
||||||
|
|
||||||
int newpage, page, wrow, wcol, end, menuopen, itemopen;
|
int page, wrow, wcol, end, menuopen, itemopen;
|
||||||
long startpos;
|
long startpos;
|
||||||
_menu_t *curr;
|
_menu_t *curr;
|
||||||
char* p;
|
char* p;
|
||||||
@ -300,16 +300,11 @@ static void disp_cat() {
|
|||||||
wmessage(" ESC ",BT_BORD,1,whelp.winattr);
|
wmessage(" ESC ",BT_BORD,1,whelp.winattr);
|
||||||
|
|
||||||
// if one or more cross reference menu items were specified
|
// if one or more cross reference menu items were specified
|
||||||
if(arraycnt) {
|
if (arraycnt)
|
||||||
|
{
|
||||||
// depending on whether there are previous
|
// define the PgUp/PgDn/Esc keys
|
||||||
// or next pages, define the PgUp/PgDn keys
|
setonkey(Key_PgUp,esc_pgup,0);
|
||||||
if(page)
|
setonkey(Key_PgDn,esc_pgdn,0);
|
||||||
setonkey(Key_PgUp,esc_pgup,0);
|
|
||||||
if(not end)
|
|
||||||
setonkey(Key_PgDn,esc_pgdn,0);
|
|
||||||
|
|
||||||
// define the Esc key
|
|
||||||
setonkey(Key_Esc,esc_esc,0);
|
setonkey(Key_Esc,esc_esc,0);
|
||||||
|
|
||||||
// end the menu and process it
|
// end the menu and process it
|
||||||
@ -319,10 +314,8 @@ static void disp_cat() {
|
|||||||
gmnudropthrough = NO;
|
gmnudropthrough = NO;
|
||||||
|
|
||||||
// free the keys that were defined
|
// free the keys that were defined
|
||||||
if(page)
|
setonkey(Key_PgUp,NULL,0);
|
||||||
setonkey(Key_PgUp,NULL,0);
|
setonkey(Key_PgDn,NULL,0);
|
||||||
if(not end)
|
|
||||||
setonkey(Key_PgDn,NULL,0);
|
|
||||||
setonkey(Key_Esc,NULL,0);
|
setonkey(Key_Esc,NULL,0);
|
||||||
|
|
||||||
// turn off the menuopen flag and restore menu info
|
// turn off the menuopen flag and restore menu info
|
||||||
@ -378,10 +371,8 @@ static void disp_cat() {
|
|||||||
|
|
||||||
// find previous page, clear help window,
|
// find previous page, clear help window,
|
||||||
// and set position to upper left corner
|
// and set position to upper left corner
|
||||||
newpage = find_page(startpos,page-1);
|
page = find_page(startpos, page + (page ? -1 : 0));
|
||||||
if(newpage==page)
|
|
||||||
break;
|
|
||||||
page=newpage;
|
|
||||||
wrow=0;
|
wrow=0;
|
||||||
wclear();
|
wclear();
|
||||||
kbclear();
|
kbclear();
|
||||||
@ -391,10 +382,8 @@ static void disp_cat() {
|
|||||||
|
|
||||||
// find next page, clear help window, and
|
// find next page, clear help window, and
|
||||||
// set position to upper left corner
|
// set position to upper left corner
|
||||||
newpage = find_page(startpos,page+1);
|
page = find_page(startpos, page + (end ? 0 : 1));
|
||||||
if(newpage==page)
|
|
||||||
break;
|
|
||||||
page=newpage;
|
|
||||||
wrow=0;
|
wrow=0;
|
||||||
wclear();
|
wclear();
|
||||||
kbclear();
|
kbclear();
|
||||||
|
Reference in New Issue
Block a user