Fix regression that the view cannot be activated by mouse clicking
SCI_SETCOMMANDEVENTS cannot be set to false, because SCEN_SETFOCUS is being used by Notepad++
The regression was introduced by commit: 044296eea1
Fix https://community.notepad-plus-plus.org/topic/25490/notepad-release-8-6-3/7?_=1708380779619
This commit is contained in:
parent
1491efd95e
commit
827b08f6ff
|
@ -236,7 +236,6 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
|
||||||
|
|
||||||
// Set only the notification we need.
|
// Set only the notification we need.
|
||||||
execute(SCI_SETMODEVENTMASK, SC_MOD_DELETETEXT | SC_MOD_INSERTTEXT | SC_PERFORMED_UNDO | SC_PERFORMED_REDO | SC_MOD_CHANGEINDICATOR);
|
execute(SCI_SETMODEVENTMASK, SC_MOD_DELETETEXT | SC_MOD_INSERTTEXT | SC_PERFORMED_UNDO | SC_PERFORMED_REDO | SC_MOD_CHANGEINDICATOR);
|
||||||
execute(SCI_SETCOMMANDEVENTS, false);
|
|
||||||
|
|
||||||
execute(SCI_SETMARGINMASKN, _SC_MARGE_FOLDER, SC_MASK_FOLDERS);
|
execute(SCI_SETMARGINMASKN, _SC_MARGE_FOLDER, SC_MASK_FOLDERS);
|
||||||
showMargin(_SC_MARGE_FOLDER, true);
|
showMargin(_SC_MARGE_FOLDER, true);
|
||||||
|
|
|
@ -222,8 +222,7 @@ intptr_t CALLBACK DebugInfoDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
|
||||||
constexpr size_t bufSizeUBR = 12;
|
constexpr size_t bufSizeUBR = 12;
|
||||||
TCHAR szUBR[bufSizeUBR] = TEXT("0");
|
TCHAR szUBR[bufSizeUBR] = TEXT("0");
|
||||||
|
|
||||||
// NOTE: RegQueryValueExW is not guaranteed to return null-ter
|
// NOTE: RegQueryValueExW is not guaranteed to return null-terminated strings
|
||||||
// minated strings
|
|
||||||
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"), 0, KEY_READ, &hKey) == ERROR_SUCCESS)
|
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"), 0, KEY_READ, &hKey) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
dataSize = sizeof(szProductName);
|
dataSize = sizeof(szProductName);
|
||||||
|
|
Loading…
Reference in New Issue