forked from KolibriOS/kolibrios
WebView 1.11: Backspace button point to previous page (thanks hidnplayr for found issue)
git-svn-id: svn://kolibrios.org@5530 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
93094caf38
commit
bbbe1d6a27
@ -32,14 +32,14 @@
|
||||
char homepage[] = FROM "html\\homepage.htm";
|
||||
|
||||
#ifdef LANG_RUS
|
||||
char version[]=" ’¥ªáâ®¢ë© ¡à 㧥à 1.1";
|
||||
char version[]=" ’¥ªáâ®¢ë© ¡à 㧥à 1.11";
|
||||
?define IMAGES_CACHE_CLEARED "Šíè ª à⨮ª ®ç¨é¥"
|
||||
?define T_LAST_SLIDE "<EFBFBD>â® ¯®á«¥¤¨© á« ©¤"
|
||||
char loading[] = "‡ £à㧪 áâà ¨æë...<br>";
|
||||
char page_not_found[] = FROM "html\page_not_found_ru.htm";
|
||||
char accept_language[]= "Accept-Language: ru\n";
|
||||
#else
|
||||
char version[]=" Text-based Browser 1.1";
|
||||
char version[]=" Text-based Browser 1.11";
|
||||
?define IMAGES_CACHE_CLEARED "Images cache cleared"
|
||||
?define T_LAST_SLIDE "This slide is the last"
|
||||
char loading[] = "Loading...<br>";
|
||||
@ -200,15 +200,13 @@ void main()
|
||||
break;
|
||||
case evKey:
|
||||
key = GetKey();
|
||||
|
||||
if (address_box.flags & 0b10) SWITCH(key)
|
||||
{ CASE 52: CASE 53: CASE 54: CASE 180: CASE 181: CASE 122: goto _EDIT_MARK; }
|
||||
|
||||
Scan(key);
|
||||
|
||||
_EDIT_MARK:
|
||||
if (key<>0x0d) && (key<>183) && (key<>184) {EAX=key<<8; edit_box_key stdcall(#address_box);}
|
||||
if (address_box.flags & 0b10) && (key!=ASCII_KEY_ENTER)
|
||||
{
|
||||
if (key<>0x0d) && (key<>183) && (key<>184) {EAX=key<<8; edit_box_key stdcall(#address_box);}
|
||||
}
|
||||
else Scan(key);
|
||||
break;
|
||||
|
||||
case evReDraw:
|
||||
if (action_buf) Scan(action_buf);
|
||||
DefineAndDrawWindow(GetScreenWidth()-WIN_W/2,GetScreenHeight()-WIN_H/2,WIN_W,WIN_H,0x73,col_bg,0,0);
|
||||
@ -388,6 +386,7 @@ void Scan(int id)
|
||||
}
|
||||
return;
|
||||
|
||||
case ASCII_KEY_BS:
|
||||
case BACK:
|
||||
if (!BrowserHistory.GoBack()) return;
|
||||
OpenPage();
|
||||
|
Loading…
Reference in New Issue
Block a user