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

Unified Diff: ash/wm/cursor_manager_chromeos.cc

Issue 960073002: Do not hide the cursor on a key up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/cursor_manager_chromeos.cc
diff --git a/ash/wm/cursor_manager_chromeos.cc b/ash/wm/cursor_manager_chromeos.cc
index 39a74d57034c626b32408244e41386879bf2ad18..af38d5c41f4531e20caaf8d46573903eb5c02f74 100644
--- a/ash/wm/cursor_manager_chromeos.cc
+++ b/ash/wm/cursor_manager_chromeos.cc
@@ -21,6 +21,9 @@ CursorManager::~CursorManager() {
bool CursorManager::ShouldHideCursorOnKeyEvent(
const ui::KeyEvent& event) const {
+ if (event.type() != ui::ET_KEY_PRESSED)
+ return false;
+
// Clicking on a key when the accessibility virtual keyboard is enabled should
// not hide the cursor.
if (keyboard::GetAccessibilityKeyboardEnabled())
« no previous file with comments | « no previous file | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698