From 667e9be00e4ddeeabe322df536e41e499b214371 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 7 Dec 2016 20:03:50 +0100 Subject: [PATCH] window: make key type 64 bits to represent unicode characters unambiguously --- src/window.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/window.h b/src/window.h index 223dad39..ed51001c 100644 --- a/src/window.h +++ b/src/window.h @@ -47,15 +47,15 @@ namespace NC { namespace Key { -typedef uint32_t Type; +typedef uint64_t Type; const Type None = -1; // modifier masks -const Type Special = 1 << 31; -const Type Alt = 1 << 30; -const Type Ctrl = 1 << 29; -const Type Shift = 1 << 28; +const Type Special = Type{1} << 63; +const Type Alt = Type{1} << 62; +const Type Ctrl = Type{1} << 61; +const Type Shift = Type{1} << 60; // useful names const Type Null = 0;