Fixed crash bug with <shift space>

master
Allen Webster 2017-11-08 20:25:54 -05:00
parent 277e66f2c4
commit ac622f5760
2 changed files with 6 additions and 2 deletions

View File

@ -36,7 +36,11 @@ ENUM(int32_t, Key_Modifier_Index){
MDFR_CONTROL_INDEX,
MDFR_ALT_INDEX,
MDFR_COMMAND_INDEX,
MDFR_CAPS_INDEX,
/* DOC(MDFR_INDEX_BINDABLE_COUNT is used to specify the number of supported modifiers that can be used in key bindings.) */
MDFR_INDEX_BINDABLE_COUNT,
MDFR_CAPS_INDEX = MDFR_INDEX_BINDABLE_COUNT,
MDFR_HOLD_INDEX,
/* DOC(MDFR_INDEX_COUNT is used to specify the number of modifiers supported.) */

View File

@ -26,7 +26,7 @@ static Command_Binding null_command_binding = {0};
struct Command_Map{
i32 parent;
Command_Binding vanilla_keyboard_default[8];
Command_Binding vanilla_keyboard_default[1 << MDFR_INDEX_BINDABLE_COUNT];
Command_Binding *commands;
i32 count, max;
void *real_beginning;