-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Description
Description of the Issue
When using the built-in Function List (View menu => Function List), the Escape key in the Function List TreeView should leave Function List and return to the active Notepad++ Scintilla edit window.
Tested on the latest repo, add here
diff --git a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp
index 1899963b..3879f572 100644
--- a/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp
+++ b/PowerEditor/src/WinControls/FunctionList/functionListPanel.cpp
@@ -575,6 +575,11 @@ void FunctionListPanel::notified(LPNMHDR notification)
}
PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, reinterpret_cast<LPARAM>((*_ppEditView)->getHSelf()));
}
+
+ else if (ptvkd->wVKey == VK_ESCAPE)
+ {
+ PostMessage(_hParent, WM_COMMAND, SCEN_SETFOCUS << 16, 0);
+ }
}
break;
}
Cheers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels