Prevent AutoShift queue from overflowing

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1075/head
Michael Richters 3 years ago
parent 23a45c9502
commit cb955c7d09
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -138,8 +138,6 @@ EventHandlerResult AutoShift::onKeyswitchEvent(KeyEvent &event) {
if (!queue_.isEmpty()) { if (!queue_.isEmpty()) {
// There's an unresolved AutoShift key press. // There's an unresolved AutoShift key press.
if (queue_.isFull()) { if (queue_.isFull()) {
flushQueue();
} else if (event.addr == queue_.addr(0)) {
flushEvent(false); flushEvent(false);
flushQueue(); flushQueue();
} }

Loading…
Cancel
Save