list_box.h: make list PgUp and PgDown selection behavior more usual

git-svn-id: svn://kolibrios.org@5958 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2015-12-13 11:05:14 +00:00
parent 59fbf0d81e
commit 3e7a7a7eb9
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#define TITLE "Eolite File Manager v3.25"
#define ABOUT_TITLE "Eolite 3.25"
#define TITLE "Eolite File Manager v3.26"
#define ABOUT_TITLE "Eolite 3.26"
#ifdef LANG_RUS
?define T_FILE "” ©«"

View File

@ -215,6 +215,7 @@ int llist::KeyPgUp()
if (count <= visible) return KeyHome();
if (first == 0) return 0;
first -= visible;
cur_y = first;
CheckDoesValuesOkey();
return 1;
}
@ -224,6 +225,7 @@ int llist::KeyPgDown()
if (count <= visible) return KeyEnd();
if (first == count - visible) return 0;
first += visible;
cur_y = first + visible - 1;
CheckDoesValuesOkey();
return 1;
}