Make default layer size 16-bit (#15286)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
This commit is contained in:
@@ -382,7 +382,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record)
|
||||
static char text[CALC_BUFFER_SIZE + 1]; // Used to store input and then output when ready to print
|
||||
static char backspaceText[CALC_BUFFER_SIZE + 1]; // Pretty dumb waste of memory because only backspace characters, used with send_string to backspace and remove input
|
||||
|
||||
if((biton32(layer_state) == CALC_LAYER && CALC_FORCE_NUM_LOCK_INSIDE_CALC) || (biton32(layer_state) != CALC_LAYER && CALC_FORCE_NUM_LOCK_OUTSIDE_CALC))
|
||||
if((get_highest_layer(layer_state) == CALC_LAYER && CALC_FORCE_NUM_LOCK_INSIDE_CALC) || (get_highest_layer(layer_state) != CALC_LAYER && CALC_FORCE_NUM_LOCK_OUTSIDE_CALC))
|
||||
{
|
||||
bool numpadKeyPressed = record->event.pressed &&
|
||||
!(get_mods() & MODS_SHIFT_MASK) &&
|
||||
@@ -397,7 +397,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record)
|
||||
}
|
||||
}
|
||||
|
||||
if(biton32(layer_state) != CALC_LAYER) { return true; }
|
||||
if(get_highest_layer(layer_state) != CALC_LAYER) { return true; }
|
||||
|
||||
int action = process_input(keycode, get_mods(), record->event);
|
||||
switch(action)
|
||||
@@ -457,4 +457,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record)
|
||||
send_string(characterToSend);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user