From b2f188fa4ba9d0e26ce0f1f7a5a1dd9a307c1580 Mon Sep 17 00:00:00 2001 From: paxcut <53811119+paxcut@users.noreply.github.com> Date: Sat, 2 Aug 2025 19:48:48 -0700 Subject: [PATCH] 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. --- plugins/builtin/source/content/views/view_pattern_editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 39f79a49a..8f623f653 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -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();