From ac2ffadacece2698f02b414f55fa7372c720e828 Mon Sep 17 00:00:00 2001 From: spang Date: Tue, 9 Jun 2015 10:07:08 -0700 Subject: 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} --- remoting/host/input_injector_chromeos.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'remoting') 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 */); } } -- cgit v1.1