feat: Display complete window title when hovering over search bar

This commit is contained in:
WerWolv
2023-12-14 13:50:26 +01:00
parent 2ebd3c6f35
commit c1f76be3b7
4 changed files with 26 additions and 13 deletions

View File

@@ -13,10 +13,12 @@ namespace hex::plugin::builtin {
this->m_justOpened = true;
});
EventSearchBoxClicked::subscribe([this] {
RequestOpenPopup::post("hex.builtin.view.command_palette.name"_lang);
this->m_commandPaletteOpen = true;
this->m_justOpened = true;
EventSearchBoxClicked::subscribe([this](ImGuiMouseButton button) {
if (button == ImGuiMouseButton_Left) {
RequestOpenPopup::post("hex.builtin.view.command_palette.name"_lang);
this->m_commandPaletteOpen = true;
this->m_justOpened = true;
}
});
}