Skip to content

Commit ac29ba3

Browse files
committed
ToolStatus: Fix bugs handling Ctrl+S and Ctrl+K
1 parent 613a832 commit ac29ba3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/ToolStatus/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,6 @@ LRESULT CALLBACK MainWndSubclassProc(
670670
goto DefaultWndProc;
671671
}
672672
break;
673-
case CBN_KILLFOCUS:
674673
case EN_KILLFOCUS:
675674
{
676675
if (GET_WM_COMMAND_HWND(wParam, lParam) != SearchboxHandle)
@@ -710,7 +709,7 @@ LRESULT CALLBACK MainWndSubclassProc(
710709
// handle keybind Ctrl + K
711710
if (SearchboxHandle && ToolStatusConfig.SearchBoxEnabled)
712711
{
713-
if (SearchBoxDisplayMode = SEARCHBOX_DISPLAY_MODE_HIDEINACTIVE)
712+
if (SearchBoxDisplayMode == SEARCHBOX_DISPLAY_MODE_HIDEINACTIVE)
714713
{
715714
if (!RebarBandExists(REBAR_BAND_ID_SEARCHBOX))
716715
RebarBandInsert(REBAR_BAND_ID_SEARCHBOX, SearchboxHandle, PhMultiplyDivide(180, PhGlobalDpi, 96), 22);

plugins/ToolStatus/resource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
#define IDC_RESET 1014
4444
#define IDC_ENABLE_AUTOHIDE_MENU 1015
4545
#define IDC_ENABLE_AUTOCOMPLETE 1016
46-
#define ID_SEARCH 40010
46+
#define ID_SEARCH 40011
4747

4848
// Next default values for new objects
4949
//
5050
#ifdef APSTUDIO_INVOKED
5151
#ifndef APSTUDIO_READONLY_SYMBOLS
5252
#define _APS_NEXT_RESOURCE_VALUE 146
53-
#define _APS_NEXT_COMMAND_VALUE 40011
53+
#define _APS_NEXT_COMMAND_VALUE 40012
5454
#define _APS_NEXT_CONTROL_VALUE 1017
5555
#define _APS_NEXT_SYMED_VALUE 11010
5656
#endif

0 commit comments

Comments
 (0)