summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_menus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-23 19:59:55 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-23 19:59:55 +0300
commit50834bfbc41f63547b0f5114ff8a0f97de28030a (patch)
tree863bb242237ec603af99f72c8d9346006509f2bc /plugins/NewStory/src/history_menus.cpp
parenta2a4133668be66d7a1fe8624c0fe1148b27777b7 (diff)
fixes #3662 (NewStory: добавить функцию "копировать текст")
Diffstat (limited to 'plugins/NewStory/src/history_menus.cpp')
-rw-r--r--plugins/NewStory/src/history_menus.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_menus.cpp b/plugins/NewStory/src/history_menus.cpp
index 5da0cc1070..abc6598282 100644
--- a/plugins/NewStory/src/history_menus.cpp
+++ b/plugins/NewStory/src/history_menus.cpp
@@ -37,6 +37,10 @@ static INT_PTR NSMenuHelper(WPARAM wParam, LPARAM lParam)
SendMessage(pData->hwnd, NSM_COPY, 0, 0);
break;
+ case 8:
+ SendMessage(pData->hwnd, NSM_COPY, 1, 0);
+ break;
+
case 2:
pData->BeginEditItem(pData->caret, false);
break;
@@ -160,10 +164,14 @@ void InitMenus()
hmiCopy = Menu_AddNewStoryMenuItem(&mi, 1);
mi.position = 100001;
+ mi.name.a = LPGEN("Copy text");
+ hmiCopy = Menu_AddNewStoryMenuItem(&mi, 8);
+
+ mi.position = 100002;
mi.name.a = LPGEN("Save as");
hmiSaveAs = Menu_AddNewStoryMenuItem(&mi, 5);
- mi.position = 100002;
+ mi.position = 100003;
mi.name.a = LPGEN("Download");
hmiDownload = Menu_AddNewStoryMenuItem(&mi, 6);