Skip to content

[Feature Request] Function List Escape treeview to Notepad++ edit window #8886

@vinsworldcom

Description

@vinsworldcom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions