mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 23:34:44 +02:00
Fix multi-edit resists escape after typing issue
Add Multi-Edit mode canceling by Esc possibility Fix #14649, close #14956
This commit is contained in:
parent
e0bb723700
commit
18815de8ac
@ -643,6 +643,14 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
|
|||||||
// Solution suggested by Neil Hodgson. See:
|
// Solution suggested by Neil Hodgson. See:
|
||||||
// https://sourceforge.net/p/scintilla/bugs/2412/
|
// https://sourceforge.net/p/scintilla/bugs/2412/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case VK_ESCAPE:
|
||||||
|
{
|
||||||
|
int selection = static_cast<int>(execute(SCI_GETMAINSELECTION, 0, 0));
|
||||||
|
int caret = static_cast<int>(execute(SCI_GETSELECTIONNCARET, selection, 0));
|
||||||
|
execute(SCI_SETSELECTION, caret, caret);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user