Terminate event handling after calling `Layer.handleLayerKeyEvent()`

There's no need to trigger a keyboard HID report after processing a layer
change, so stop processing before calling `prepareKeyboardReport()` if
`event.key` is a layer change `Key`.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1024/head
Michael Richters 4 years ago
parent 7d16958a7a
commit 4c47ce1185
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -178,7 +178,7 @@ Runtime_::handleKeyEvent(KeyEvent event) {
// If it's a built-in Layer key, we handle it here, and skip sending report(s) // If it's a built-in Layer key, we handle it here, and skip sending report(s)
if (event.key.isLayerKey()) { if (event.key.isLayerKey()) {
Layer.handleLayerKeyEvent(event); Layer.handleLayerKeyEvent(event);
//return; return;
} }
// The System Control HID report contains only one keycode, and gets sent // The System Control HID report contains only one keycode, and gets sent

Loading…
Cancel
Save