[jasper/world/studio] WorldEditor: suppress keyboard when popup open
This commit is contained in:
@@ -296,6 +296,7 @@ void WorldEditorImGui::drawWorldView() noexcept {
|
||||
return handleDrop(fbPaneScale);
|
||||
});
|
||||
handleMouseSelection(fbPaneScale);
|
||||
if (!popupOpen()) {
|
||||
auto const&io = ImGui::GetIO();
|
||||
if (io.KeyCtrl) {
|
||||
if (io.KeysDown[ImGuiKey_G]) {
|
||||
@@ -308,6 +309,7 @@ void WorldEditorImGui::drawWorldView() noexcept {
|
||||
setPasteEnabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void WorldEditorImGui::handleMouseSelection(float fbPaneScale) noexcept {
|
||||
|
@@ -104,6 +104,10 @@ class WorldEditorImGui: public studio::Editor {
|
||||
ox::Result<ox::UUID> assetId() const noexcept;
|
||||
|
||||
ox::Error addDependency(ox::FileAddress const&fileAddr) noexcept;
|
||||
|
||||
constexpr bool popupOpen() const noexcept {
|
||||
return m_sizeEditor.show;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user