mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +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
@ -644,6 +644,14 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
|
|||||||
// 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