forked from KolibriOS/kolibrios
WebView 2.4a: bugfix
git-svn-id: svn://kolibrios.org@7772 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
672bbcf6a0
commit
14f3457eb8
@ -180,21 +180,7 @@ void main()
|
|||||||
if (key_scancode == SCAN_CODE_TAB) {EventActivatePreviousTab();break;}
|
if (key_scancode == SCAN_CODE_TAB) {EventActivatePreviousTab();break;}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key_modifier&KEY_LCTRL) || (key_modifier&KEY_RCTRL) {
|
if (ProcessCtrlKeyEvent()) break;
|
||||||
if (key_scancode == SCAN_CODE_KEY_O) EventOpenDialog();
|
|
||||||
else if (key_scancode == SCAN_CODE_KEY_H) ProcessEvent(VIEW_HISTORY);
|
|
||||||
else if (key_scancode == SCAN_CODE_KEY_U) EventViewSource();
|
|
||||||
else if (key_scancode == SCAN_CODE_KEY_T) EventOpenNewTab(URL_SERVICE_HOMEPAGE);
|
|
||||||
else if (key_scancode == SCAN_CODE_KEY_N) RunProgram(#program_path, NULL);
|
|
||||||
else if (key_scancode == SCAN_CODE_KEY_J) ProcessEvent(DOWNLOAD_MANAGER);
|
|
||||||
else if (key_scancode == SCAN_CODE_KEY_R) ProcessEvent(REFRESH_BUTTON);
|
|
||||||
else if (key_scancode == SCAN_CODE_ENTER) EventSeachWeb();
|
|
||||||
else if (key_scancode == SCAN_CODE_LEFT) ProcessEvent(BACK_BUTTON);
|
|
||||||
else if (key_scancode == SCAN_CODE_RIGHT) ProcessEvent(FORWARD_BUTTON);
|
|
||||||
else if (key_scancode == SCAN_CODE_KEY_W) EventCloseActiveTab();
|
|
||||||
else if (key_scancode == SCAN_CODE_TAB) EventActivateNextTab();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (key_scancode == SCAN_CODE_F5) ProcessEvent(REFRESH_BUTTON);
|
if (key_scancode == SCAN_CODE_F5) ProcessEvent(REFRESH_BUTTON);
|
||||||
|
|
||||||
@ -256,6 +242,50 @@ void main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ProcessCtrlKeyEvent()
|
||||||
|
{
|
||||||
|
if (key_modifier&KEY_LCTRL) || (key_modifier&KEY_RCTRL) switch(key_scancode)
|
||||||
|
{
|
||||||
|
case SCAN_CODE_KEY_O:
|
||||||
|
EventOpenDialog();
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_KEY_H:
|
||||||
|
ProcessEvent(VIEW_HISTORY);
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_KEY_U:
|
||||||
|
EventViewSource();
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_KEY_T:
|
||||||
|
EventOpenNewTab(URL_SERVICE_HOMEPAGE);
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_KEY_N:
|
||||||
|
RunProgram(#program_path, NULL);
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_KEY_J:
|
||||||
|
ProcessEvent(DOWNLOAD_MANAGER);
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_KEY_R:
|
||||||
|
ProcessEvent(REFRESH_BUTTON);
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_ENTER:
|
||||||
|
EventSeachWeb();
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_LEFT:
|
||||||
|
ProcessEvent(BACK_BUTTON);
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_RIGHT:
|
||||||
|
ProcessEvent(FORWARD_BUTTON);
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_KEY_W:
|
||||||
|
EventCloseActiveTab();
|
||||||
|
return true;
|
||||||
|
case SCAN_CODE_TAB:
|
||||||
|
EventActivateNextTab();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void SetElementSizes()
|
void SetElementSizes()
|
||||||
{
|
{
|
||||||
address_box.width = Form.cwidth - address_box.left - 52 - 16;
|
address_box.width = Form.cwidth - address_box.left - 52 - 16;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
char version[]="WebView 2.4";
|
char version[]="WebView 2.4a";
|
||||||
|
|
||||||
#ifdef LANG_RUS
|
#ifdef LANG_RUS
|
||||||
char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0";
|
char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0";
|
||||||
|
Loading…
Reference in New Issue
Block a user