mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user