diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-03 13:42:03 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-03 13:42:03 +0300 |
commit | 909ab425442127f1d26fcad90fb78c6c3bee2d72 (patch) | |
tree | f59ea68fa696cd6e5853fc759dd66bda1dc20bea /plugins/NewStory/src | |
parent | 07e72ab90be8a7cf0f600c7be0094e7fcb757d60 (diff) |
fixes #2414 (NewStory: add more hotkeys)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 7 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 10 | ||||
-rw-r--r-- | plugins/NewStory/src/resource.h | 1 |
3 files changed, 14 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index 52449c633a..bfc3cfeb2d 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -415,7 +415,7 @@ public: btnCalendar(this, IDC_DATEPOPUP, g_plugin.getIcon(ICO_CALENDAR), LPGEN("Jump to date")), btnUserInfo(this, IDC_USERINFO, g_plugin.getIcon(ICO_USERINFO), LPGEN("User info")), btnUserMenu(this, IDC_USERMENU, g_plugin.getIcon(ICO_USERMENU), LPGEN("User menu")), - btnFindNext(this, IDC_FINDNEXT, g_plugin.getIcon(ICO_FINDNEXT), LPGEN("Find next")), + btnFindNext(this, IDOK, g_plugin.getIcon(ICO_FINDNEXT), LPGEN("Find next")), btnFindPrev(this, IDC_FINDPREV, g_plugin.getIcon(ICO_FINDPREV), LPGEN("Find previous")), btnTimeTree(this, IDC_TIMETREE, g_plugin.getIcon(ICO_TIMETREE), LPGEN("Conversations")) { @@ -575,6 +575,11 @@ public: return true; } + bool OnApply() override + { + return false; + } + void OnDestroy() override { g_plugin.setWord(m_hContact, "showFlags", showFlags); diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 7e8d25ba8f..19a92950be 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -750,11 +750,17 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM break; case VK_PRIOR: - data->PageUp(); + if (isCtrl) + data->ScrollTop(); + else + data->PageUp(); break; case VK_NEXT: - data->PageDown(); + if (isCtrl) + data->ScrollBottom(); + else + data->PageDown(); break; case VK_HOME: diff --git a/plugins/NewStory/src/resource.h b/plugins/NewStory/src/resource.h index 47234f6a50..13bc660309 100644 --- a/plugins/NewStory/src/resource.h +++ b/plugins/NewStory/src/resource.h @@ -38,7 +38,6 @@ #define IDC_TIMETREE 1007 #define IDC_FILTER 1008 #define IDC_FINDPREV 1009 -#define IDC_FINDNEXT 1010 #define IDC_SEARCHTEXT 1011 #define IDC_SEARCHICON 1012 #define IDC_LOGOPTIONS 1013 |