Commit 57d2aaf3 authored by spang's avatar spang Committed by Commit bot

ozone: evdev: Fix repeating the same key after r324081

We broke repeating the same key twice in a row in r324081. Cancelling
repeat must update the repeated key, so that we can tell that we need
to start a new repeat for that key in UpdateKeyRepeat if it's pressed
again.

TEST=Repeat the same key twice in a row on link
BUG=473446

Review URL: https://codereview.chromium.org/1074503002

Cr-Commit-Position: refs/heads/master@{#324263}
parent 3c0c5b27
...@@ -156,6 +156,7 @@ void KeyboardEvdev::StartKeyRepeat(unsigned int key) { ...@@ -156,6 +156,7 @@ void KeyboardEvdev::StartKeyRepeat(unsigned int key) {
} }
void KeyboardEvdev::StopKeyRepeat() { void KeyboardEvdev::StopKeyRepeat() {
repeat_key_ = KEY_RESERVED;
repeat_sequence_++; repeat_sequence_++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment