fix: shortcuts is subviews of pattern editor are duplicated in the main text editor. (#2371)

The error occurred because only one of two subviews (the text editor or
the console) were allowed to report having focus. By extending this
functionality to all subviews, each one can use its own set of shortcuts
thus fixing the problem.
This commit is contained in:
paxcut
2025-08-02 19:48:48 -07:00
committed by GitHub
parent 7575f85bdf
commit b2f188fa4b

View File

@@ -351,8 +351,7 @@ namespace hex::plugin::builtin {
oldHeight = height;
if (g.NavWindow != nullptr) {
std::string name = g.NavWindow->Name;
if (name.contains(textEditorView) || name.contains(consoleView))
m_focusedSubWindowName = name;
m_focusedSubWindowName = name;
}
fonts::CodeEditor().push();