fix keyboard input in Windows (#537)

This commit is contained in:
MihailRis 2025-06-30 20:50:41 +03:00 committed by GitHub
parent 9cd95bb0eb
commit 2e181259d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,7 @@ public:
ObserverHandler(ObserverHandler&& handler) noexcept
: destructor(std::move(handler.destructor)) {
handler.destructor = nullptr;
}
~ObserverHandler() {
@ -33,6 +34,7 @@ public:
destructor();
}
destructor = std::move(handler.destructor);
handler.destructor = nullptr;
return *this;
}
private: