diff --git a/po/ar.po b/po/ar.po index 099056fe0e0..9f988f19118 100644 --- a/po/ar.po +++ b/po/ar.po @@ -10537,7 +10537,8 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&مساعدة المساعدة" #: winhlp32.rc:55 diff --git a/po/bg.po b/po/bg.po index 3f49483dd5d..3da53ddbcf5 100644 --- a/po/bg.po +++ b/po/bg.po @@ -10763,7 +10763,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Помощ за помощта" #: winhlp32.rc:55 diff --git a/po/ca.po b/po/ca.po index a10e8e6ce92..c4238f1a488 100644 --- a/po/ca.po +++ b/po/ca.po @@ -10429,7 +10429,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/cs.po b/po/cs.po index 33bcc03254f..1192fa89ad6 100644 --- a/po/cs.po +++ b/po/cs.po @@ -11200,7 +11200,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Pomoc k nápovědě" #: winhlp32.rc:55 diff --git a/po/da.po b/po/da.po index 77f1ba353d4..fec741a96e4 100644 --- a/po/da.po +++ b/po/da.po @@ -11254,7 +11254,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Brug af Hjælp" #: winhlp32.rc:55 diff --git a/po/de.po b/po/de.po index e24f6495dc8..1be6475830f 100644 --- a/po/de.po +++ b/po/de.po @@ -11212,7 +11212,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Hilfe benutzen" #: winhlp32.rc:55 diff --git a/po/el.po b/po/el.po index dd1be9c8af5..7b837320a59 100644 --- a/po/el.po +++ b/po/el.po @@ -10550,7 +10550,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/en.po b/po/en.po index 4d7962eceb6..2b10b1fb9c1 100644 --- a/po/en.po +++ b/po/en.po @@ -10775,8 +10775,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" -msgstr "" +msgid "&Help on help\tF1" +msgstr "&Help on help\tF1" #: winhlp32.rc:55 msgid "Always on &top" diff --git a/po/en_US.po b/po/en_US.po index 9cfdbedc849..1076023d4cb 100644 --- a/po/en_US.po +++ b/po/en_US.po @@ -10935,8 +10935,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" -msgstr "&Help on help" +msgid "&Help on help\tF1" +msgstr "&Help on help\tF1" #: winhlp32.rc:55 msgid "Always on &top" diff --git a/po/eo.po b/po/eo.po index d051b3dbfcf..0a53ab9e2b2 100644 --- a/po/eo.po +++ b/po/eo.po @@ -10739,7 +10739,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "Pri Helpanto" #: winhlp32.rc:55 diff --git a/po/es.po b/po/es.po index 95505dffb1f..9acac498348 100644 --- a/po/es.po +++ b/po/es.po @@ -11431,7 +11431,8 @@ msgid "Large" msgstr "Grande" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "A&yuda sobre la ayuda" #: winhlp32.rc:55 diff --git a/po/fa.po b/po/fa.po index 9e5ac3d5798..9d5344eb2ff 100644 --- a/po/fa.po +++ b/po/fa.po @@ -10540,7 +10540,8 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&کمک برای کمک" #: winhlp32.rc:55 diff --git a/po/fi.po b/po/fi.po index d404714d019..39318209dc5 100644 --- a/po/fi.po +++ b/po/fi.po @@ -10857,7 +10857,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "Apua &Opastuksesta" #: winhlp32.rc:55 diff --git a/po/fr.po b/po/fr.po index 3c67a9fafed..0748c27212b 100644 --- a/po/fr.po +++ b/po/fr.po @@ -11070,7 +11070,8 @@ msgid "Large" msgstr "Grande" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Utiliser l'aide" #: winhlp32.rc:55 diff --git a/po/he.po b/po/he.po index c0d47643174..806bc51c5b2 100644 --- a/po/he.po +++ b/po/he.po @@ -11109,7 +11109,8 @@ msgid "Large" msgstr "גדולים" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "ע&זרה לעזרה" #: winhlp32.rc:55 diff --git a/po/hi.po b/po/hi.po index a6a77c7ae80..c1cbb339b44 100644 --- a/po/hi.po +++ b/po/hi.po @@ -10412,7 +10412,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/hu.po b/po/hu.po index c65b5aea133..bff96af4376 100644 --- a/po/hu.po +++ b/po/hu.po @@ -11099,7 +11099,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Használat" #: winhlp32.rc:55 diff --git a/po/it.po b/po/it.po index 761f859e736..b9f6cf96d1f 100644 --- a/po/it.po +++ b/po/it.po @@ -11343,7 +11343,8 @@ msgid "Large" msgstr "Grandi" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Aiuto sulla Guida" #: winhlp32.rc:55 diff --git a/po/ja.po b/po/ja.po index fe941d11132..fc427ae89ba 100644 --- a/po/ja.po +++ b/po/ja.po @@ -10944,7 +10944,8 @@ msgid "Large" msgstr "大" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "ヘルプの使い方(&H)" #: winhlp32.rc:55 diff --git a/po/ko.po b/po/ko.po index d239c053f74..13fb85ba47c 100644 --- a/po/ko.po +++ b/po/ko.po @@ -10896,7 +10896,8 @@ msgid "Large" msgstr "크게" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "도움말 사용법(&H)" #: winhlp32.rc:55 diff --git a/po/lt.po b/po/lt.po index aaa8a98d8ed..ff87277d527 100644 --- a/po/lt.po +++ b/po/lt.po @@ -10971,7 +10971,8 @@ msgid "Large" msgstr "&Didelis" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "Pa&galba apie žinyną" #: winhlp32.rc:55 diff --git a/po/ml.po b/po/ml.po index f893f211588..045dab9ab3e 100644 --- a/po/ml.po +++ b/po/ml.po @@ -10412,7 +10412,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/nb_NO.po b/po/nb_NO.po index ffd906560cf..930dc709173 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -11225,7 +11225,8 @@ msgid "Large" msgstr "Stor" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Hjelp om hjelp" #: winhlp32.rc:55 diff --git a/po/nl.po b/po/nl.po index 33537928855..df18b40ceea 100644 --- a/po/nl.po +++ b/po/nl.po @@ -11100,7 +11100,8 @@ msgid "Large" msgstr "Groot" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "H&ulp bij Help" #: winhlp32.rc:55 diff --git a/po/or.po b/po/or.po index b7d41f62dcc..dda8e5889e1 100644 --- a/po/or.po +++ b/po/or.po @@ -10412,7 +10412,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/pa.po b/po/pa.po index 3e0109e1f1a..34fb834ec7d 100644 --- a/po/pa.po +++ b/po/pa.po @@ -10412,7 +10412,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/pl.po b/po/pl.po index 89d4ccf1521..e114585ca39 100644 --- a/po/pl.po +++ b/po/pl.po @@ -10983,7 +10983,8 @@ msgid "Large" msgstr "Duże" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "Pomo&c" #: winhlp32.rc:55 diff --git a/po/pt_BR.po b/po/pt_BR.po index 370131e047b..529dd91641f 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -11292,7 +11292,8 @@ msgid "Large" msgstr "Grande" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Ajuda na ajuda" #: winhlp32.rc:55 diff --git a/po/pt_PT.po b/po/pt_PT.po index a5f94ca29d4..b99e04d7a63 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -11352,7 +11352,8 @@ msgid "Large" msgstr "Grande" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Ajuda na ajuda" #: winhlp32.rc:55 diff --git a/po/rm.po b/po/rm.po index 841e921a41d..d60cd28a0ac 100644 --- a/po/rm.po +++ b/po/rm.po @@ -10490,7 +10490,7 @@ msgstr "Large" #: winhlp32.rc:54 #, fuzzy -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "&Douvrar l'ag�d" #: winhlp32.rc:55 diff --git a/po/ro.po b/po/ro.po index 9d2c7d33e08..30278164ae4 100644 --- a/po/ro.po +++ b/po/ro.po @@ -11587,7 +11587,8 @@ msgid "Large" msgstr "Mare" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Ajutor la ajutor" #: winhlp32.rc:55 diff --git a/po/ru.po b/po/ru.po index 536eb0f6ee5..1df236c1ecc 100644 --- a/po/ru.po +++ b/po/ru.po @@ -10960,7 +10960,8 @@ msgid "Large" msgstr "Крупный" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Использование справки" #: winhlp32.rc:55 diff --git a/po/sk.po b/po/sk.po index 966c6df979a..27d032bf7d8 100644 --- a/po/sk.po +++ b/po/sk.po @@ -10718,7 +10718,7 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/sl.po b/po/sl.po index e710437dd3b..2c89b6ea214 100644 --- a/po/sl.po +++ b/po/sl.po @@ -11387,7 +11387,8 @@ msgid "Large" msgstr "Velika" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&O pomoči" #: winhlp32.rc:55 diff --git a/po/sr_RS@cyrillic.po b/po/sr_RS@cyrillic.po index 002132ba0e5..f53f9bc9143 100644 --- a/po/sr_RS@cyrillic.po +++ b/po/sr_RS@cyrillic.po @@ -10910,7 +10910,8 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Помоћ за помоћ" #: winhlp32.rc:55 diff --git a/po/sr_RS@latin.po b/po/sr_RS@latin.po index 765f434c590..f30dd243000 100644 --- a/po/sr_RS@latin.po +++ b/po/sr_RS@latin.po @@ -10986,7 +10986,8 @@ msgid "Large" msgstr "Veliki" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Pomoć za pomoć" #: winhlp32.rc:55 diff --git a/po/sv.po b/po/sv.po index eca572a4cc0..5e3711ed98f 100644 --- a/po/sv.po +++ b/po/sv.po @@ -11038,7 +11038,8 @@ msgid "Large" msgstr "Stort" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "Användning &av hjälp" #: winhlp32.rc:55 diff --git a/po/te.po b/po/te.po index 2b83768918b..51d88963767 100644 --- a/po/te.po +++ b/po/te.po @@ -10412,7 +10412,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/th.po b/po/th.po index e0863f35688..a5389cc8265 100644 --- a/po/th.po +++ b/po/th.po @@ -10581,7 +10581,8 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "เกี่ยวกับช่วยเหลีอ" #: winhlp32.rc:55 diff --git a/po/tr.po b/po/tr.po index 9e7070e521f..b78010487a2 100644 --- a/po/tr.po +++ b/po/tr.po @@ -11368,7 +11368,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Yardım kullanımı" #: winhlp32.rc:55 diff --git a/po/uk.po b/po/uk.po index 4e5500c53d7..666f06e6f45 100644 --- a/po/uk.po +++ b/po/uk.po @@ -10968,7 +10968,8 @@ msgid "Large" msgstr "Великий" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Використання Довідки" #: winhlp32.rc:55 diff --git a/po/wa.po b/po/wa.po index 37760f83823..2735aa8e4e9 100644 --- a/po/wa.po +++ b/po/wa.po @@ -10557,7 +10557,8 @@ msgid "Large" msgstr "Large" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "&Aide so l' Aide" #: winhlp32.rc:55 diff --git a/po/wine.pot b/po/wine.pot index 74e84846b0a..cc98f85677e 100644 --- a/po/wine.pot +++ b/po/wine.pot @@ -10381,7 +10381,7 @@ msgid "Large" msgstr "" #: winhlp32.rc:54 -msgid "&Help on help" +msgid "&Help on help\tF1" msgstr "" #: winhlp32.rc:55 diff --git a/po/zh_CN.po b/po/zh_CN.po index e50da69cd74..50fc779c47e 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -10887,7 +10887,8 @@ msgid "Large" msgstr "大号" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "如何使用帮助(&H)" #: winhlp32.rc:55 diff --git a/po/zh_TW.po b/po/zh_TW.po index 62abafc3edd..87b7682726f 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -10948,7 +10948,8 @@ msgid "Large" msgstr "大號" #: winhlp32.rc:54 -msgid "&Help on help" +#, fuzzy +msgid "&Help on help\tF1" msgstr "如何使用幫助(&H)" #: winhlp32.rc:55 diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c index 685b55a5a7a..a43a784e501 100644 --- a/programs/winhlp32/winhelp.c +++ b/programs/winhlp32/winhelp.c @@ -1347,7 +1347,7 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, case WM_COMMAND: win = (WINHELP_WINDOW*) GetWindowLongPtr(hWnd, 0); - switch (wParam) + switch (LOWORD(wParam)) { /* Menu FILE */ case MNID_FILE_OPEN: MACRO_FileOpen(); break; @@ -1654,6 +1654,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show) static CHAR default_wndname[] = "main"; LPSTR wndname = default_wndname; WINHELP_DLL* dll; + HACCEL hAccel; Globals.hInstance = hInstance; @@ -1725,10 +1726,15 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show) WINHELP_GetWindowInfo(hlpfile, wndname), show); /* Message loop */ + hAccel = LoadAcceleratorsW(hInstance, MAKEINTRESOURCEW(MAIN_ACCEL)); while ((Globals.win_list || Globals.active_popup) && GetMessage(&msg, 0, 0, 0)) { - TranslateMessage(&msg); - DispatchMessage(&msg); + HWND hWnd = Globals.active_win ? Globals.active_win->hMainWnd : NULL; + if (!TranslateAcceleratorW(hWnd, hAccel, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } } for (dll = Globals.dlls; dll; dll = dll->next) { diff --git a/programs/winhlp32/winhelp_res.h b/programs/winhlp32/winhelp_res.h index 92a4863c26f..5bf97aadae1 100644 --- a/programs/winhlp32/winhelp_res.h +++ b/programs/winhlp32/winhelp_res.h @@ -29,6 +29,7 @@ #define MAIN_MENU 0xF000 #define CONTEXT_MENU 0xF001 +#define MAIN_ACCEL 0xF002 #define STID_WINE_HELP 0x120 #define STID_WHERROR 0x121 diff --git a/programs/winhlp32/winhlp32.rc b/programs/winhlp32/winhlp32.rc index 8d3acaf0295..6f0ee8a7856 100644 --- a/programs/winhlp32/winhlp32.rc +++ b/programs/winhlp32/winhlp32.rc @@ -51,7 +51,7 @@ MAIN_MENU MENU END } POPUP "&Help" { - MENUITEM "&Help on help", MNID_HELP_HELPON + MENUITEM "&Help on help\tF1", MNID_HELP_HELPON MENUITEM "Always on &top", MNID_HELP_HELPTOP MENUITEM SEPARATOR MENUITEM "&About Wine Help", MNID_HELP_ABOUT @@ -94,5 +94,11 @@ STID_PSH_INDEX, "Help topics: " LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL + +MAIN_ACCEL ACCELERATORS +{ + VK_F1, MNID_HELP_HELPON, VIRTKEY +} + /* @makedep: winhelp.ico */ IDI_WINHELP ICON winhelp.ico