mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Pattern Editor shortcuts not working correctly on different languages (#2085)
Fixes #2084 Error in text editor prevented using shortcuts when language other than English was chosen. The code was mistakenly using localized name to test which window had focus a execute the shortcut. Fixed it by switching the name of the child window to the constant value used to check the windows focused identity.
This commit is contained in:
@@ -344,7 +344,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
ImGui::PushFont(fonts::CodeEditor());
|
||||
m_textEditor.Render("hex.builtin.view.pattern_editor.name"_lang, textEditorSize, false);
|
||||
m_textEditor.Render("##pattern_editor", textEditorSize, false);
|
||||
ImGui::PopFont();
|
||||
|
||||
m_textEditorHoverBox = ImRect(windowPosition,windowPosition+textEditorSize);
|
||||
|
||||
Reference in New Issue
Block a user