diff --git a/src/key_events.cpp b/src/key_events.cpp index acc2ce4a..31c76221 100644 --- a/src/key_events.cpp +++ b/src/key_events.cpp @@ -35,7 +35,7 @@ static bool handleKeyswitchEventDefault(Key mappedKey, byte row, byte col, uint8 } else if (keyIsPressed(keyState)) { press_key(mappedKey); } else if (keyToggledOff(keyState) && (keyState & INJECTED)) { - release_key(mappedKey); + releaseKey(mappedKey); } return true; } @@ -60,7 +60,7 @@ void press_key(Key mappedKey) { } -void release_key(Key mappedKey) { +void releaseKey(Key mappedKey) { if (mappedKey.flags & SHIFT_HELD) { Keyboard.release(Key_LeftShift.keyCode); } diff --git a/src/key_events.h b/src/key_events.h index 3c490fab..87fd48e1 100644 --- a/src/key_events.h +++ b/src/key_events.h @@ -45,4 +45,4 @@ void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState); // Internal use void press_key(Key mappedKey); -void release_key(Key mappedKey); +void releaseKey(Key mappedKey);