Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: ui/events/ozone/evdev/input_controller_evdev.cc

Issue 958403003: ozone: evdev: Release pressed keys when event filtering starts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/ozone/evdev/keyboard_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/input_controller_evdev.cc
diff --git a/ui/events/ozone/evdev/input_controller_evdev.cc b/ui/events/ozone/evdev/input_controller_evdev.cc
index 0f3ba9c3b89c4a2499f83955988f8c8aeb16b562..d801e9d9faf4cff49490070e7c2b29c8c2383e96 100644
--- a/ui/events/ozone/evdev/input_controller_evdev.cc
+++ b/ui/events/ozone/evdev/input_controller_evdev.cc
@@ -96,6 +96,9 @@ void InputControllerEvdev::DisableInternalKeyboardExceptKeys(
if (input_device_factory_) {
input_device_factory_->DisableInternalKeyboardExceptKeys(
excepted_keys.Pass());
+
+ // Release keys since we may block key up events.
+ keyboard_->Reset();
}
}
« no previous file with comments | « no previous file | ui/events/ozone/evdev/keyboard_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698