summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorspang <spang@chromium.org>2015-06-09 10:07:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-09 17:07:44 +0000
commitac2ffadacece2698f02b414f55fa7372c720e828 (patch)
tree327e2b2474776d519ac25979ba32e5d5cdaac914 /remoting
parent936c5dd07832efe4b2ef9753a9d7e99a4350d4ff (diff)
downloadchromium_src-ac2ffadacece2698f02b414f55fa7372c720e828.zip
chromium_src-ac2ffadacece2698f02b414f55fa7372c720e828.tar.gz
chromium_src-ac2ffadacece2698f02b414f55fa7372c720e828.tar.bz2
ozone: evdev: Invert enable_repeat as suppress_auto_repeat
This incorporates comments from wez@ on top of r333349. See https://codereview.chromium.org/1166113003/#msg16. The primary change is to invert the sense of the repeat option for key events so that "true" causes suppression of repeat and "false" is the usual behavior that triggers repeats. Also add some docs and make some minor tweaks to naming. BUG=496420 TEST=visit rbyers.github.io/eventTest.html via it2me from chromebook to chromebook key repeat works normally Review URL: https://codereview.chromium.org/1164403003 Cr-Commit-Position: refs/heads/master@{#333511}
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/input_injector_chromeos.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/input_injector_chromeos.cc b/remoting/host/input_injector_chromeos.cc
index 58afde0..8fa2ea2 100644
--- a/remoting/host/input_injector_chromeos.cc
+++ b/remoting/host/input_injector_chromeos.cc
@@ -84,8 +84,8 @@ void InputInjectorChromeos::Core::InjectKeyEvent(const KeyEvent& event) {
// Ignore events which can't be mapped.
if (dom_code != ui::DomCode::NONE) {
- delegate_->InjectKeyPress(dom_code, event.pressed(),
- false /* enable_repeat */);
+ delegate_->InjectKeyEvent(dom_code, event.pressed(),
+ true /* suppress_auto_repeat */);
}
}