1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Windows: add 'Copy' and 'Paste' to the window's system menu.

These actions were already available in the Ctrl + right-click context
menu (or just right-click, if you shifted the mouse-button actions
into Windows mode). But a user might not know about Ctrl + right-click,
and only know to look in the system menu. So it makes them easier to
find if they're in that menu too. Also, I don't really see any reason
why the two menus _should_ be different.
This commit is contained in:
Simon Tatham 2024-08-17 09:41:51 +01:00
parent 8005738eaf
commit e11c83a4a5

View File

@ -700,10 +700,12 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
wgs->popup_menus[SYSMENU].menu = GetSystemMenu(wgs->term_hwnd, false);
wgs->popup_menus[CTXMENU].menu = CreatePopupMenu();
AppendMenu(wgs->popup_menus[CTXMENU].menu, MF_ENABLED,
IDM_COPY, "&Copy");
AppendMenu(wgs->popup_menus[CTXMENU].menu, MF_ENABLED,
IDM_PASTE, "&Paste");
for (j = 0; j < lenof(wgs->popup_menus); j++) {
m = wgs->popup_menus[j].menu;
AppendMenu(m, MF_ENABLED, IDM_COPY, "&Copy");
AppendMenu(m, MF_ENABLED, IDM_PASTE, "&Paste");
}
wgs->savedsess_menu = CreateMenu();
get_sesslist(&sesslist, true);