plugins/Ranges: Fix the Macro key ranges

Macro keycodes pre-date the Ranges plugin, so they previously had a keycode that
sorted before ranges::FIRST. For the sake of backwards compatibility, we want to
keep using the same keycodes.

Fixes #1010.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/1014/head
Gergely Nagy 4 years ago
parent a2df72735d
commit 9c49d5b2ac
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -21,6 +21,11 @@ namespace kaleidoscope {
namespace ranges {
enum : uint16_t {
// Macro ranges pre-date Kaleidoscope-Ranges, so they're coming before
// ranges::FIRST, because we want to keep the keycodes backwards compatible.
MACRO_FIRST = 24576,
MACRO_LAST = MACRO_FIRST + 255,
FIRST = 0xc000,
KALEIDOSCOPE_FIRST = FIRST,
OS_FIRST,
@ -49,8 +54,6 @@ enum : uint16_t {
SC_LAST,
REDIAL,
TURBO,
MACRO_FIRST,
MACRO_LAST = MACRO_FIRST + 255,
DYNAMIC_MACRO_FIRST,
DYNAMIC_MACRO_LAST = DYNAMIC_MACRO_FIRST + 31,

Loading…
Cancel
Save