diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-12 10:32:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-12 11:59:55 +0200 |
commit | 8c1140e6230d14604f17030e22986e338510174c (patch) | |
tree | 81f436c896c4f529489360cb05be9d4d96e144f5 /include/vcl/keycodes.hxx | |
parent | 6e820db2290783031f4d0877eaa39c2951bb909e (diff) |
move the key related types to keycod.hxx
so we have all the related definitions in the same header file
Change-Id: I8032c2ae36bc9dd860069b3dafd69207d5636501
Reviewed-on: https://gerrit.libreoffice.org/42187
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/keycodes.hxx')
-rw-r--r-- | include/vcl/keycodes.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/vcl/keycodes.hxx b/include/vcl/keycodes.hxx index cc7d51ec30b8..8e31c4fe1f2b 100644 --- a/include/vcl/keycodes.hxx +++ b/include/vcl/keycodes.hxx @@ -20,12 +20,19 @@ #ifndef INCLUDED_VCL_KEYCODES_HXX #define INCLUDED_VCL_KEYCODES_HXX -#include <vcl/vclenum.hxx> -#undef DELETE #include <com/sun/star/awt/Key.hpp> #include <com/sun/star/awt/KeyGroup.hpp> #include <o3tl/typed_flags_set.hxx> +#define KEY_CODE_MASK ((sal_uInt16)0x0FFF) + +// Modifier keys +#define KEY_SHIFT ((sal_uInt16)0x1000) +#define KEY_MOD1 ((sal_uInt16)0x2000) +#define KEY_MOD2 ((sal_uInt16)0x4000) +#define KEY_MOD3 ((sal_uInt16)0x8000) +#define KEY_MODIFIERS_MASK ((sal_uInt16)0xF000) + // Key groups #define KEYGROUP_NUM ((sal_uInt16)css::awt::KeyGroup::NUM) #define KEYGROUP_ALPHA ((sal_uInt16)css::awt::KeyGroup::ALPHA) |