mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 15:57:03 -05:00
fix: Bytes not automatically being focused in editing mode anymore
This commit is contained in:
@@ -190,11 +190,6 @@ namespace hex::ui {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (m_enteredEditingMode) {
|
||||
ImGui::SetKeyboardFocusHere();
|
||||
ImGui::SetNextFrameWantCaptureKeyboard(true);
|
||||
}
|
||||
|
||||
bool shouldExitEditingMode = true;
|
||||
if (cellType == m_editingCellType && cellType == CellType::Hex) {
|
||||
std::vector<u8> buffer = m_editingBytes;
|
||||
@@ -212,6 +207,11 @@ namespace hex::ui {
|
||||
shouldExitEditingMode = asciiVisualizer.drawEditing(*m_editingAddress, m_editingBytes.data(), m_editingBytes.size(), m_upperCaseHex, m_enteredEditingMode);
|
||||
}
|
||||
|
||||
if (ImGui::IsWindowFocused()) {
|
||||
ImGui::SetKeyboardFocusHere(-1);
|
||||
ImGui::SetNextFrameWantCaptureKeyboard(true);
|
||||
}
|
||||
|
||||
if (shouldExitEditingMode || m_shouldModifyValue) {
|
||||
{
|
||||
std::vector<u8> oldData(m_editingBytes.size());
|
||||
|
||||
Reference in New Issue
Block a user