Files
msime-windows/windows/src/IPC/KeyEventSendResult.h
T

17 lines
442 B
C++

#pragma once
// Local transport outcome, not a serialized IPC field.
enum class KeyEventSendResult
{
Sent,
DefinitelyNotSent,
DeliveryAmbiguous,
};
// A necessary condition for local fallback, not permission to replay a key.
// The caller must still validate focus, composition and ownership.
constexpr bool IsDefinitelyNotSent(KeyEventSendResult result) noexcept
{
return result == KeyEventSendResult::DefinitelyNotSent;
}