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

Unified Diff: ash/accelerators/accelerator_table.cc

Issue 2013933002: Fix shelf alignment locking for power button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove compositor DCHECK workaround. Created 4 years, 7 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/shelf/shelf_locking_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_table.cc
diff --git a/ash/accelerators/accelerator_table.cc b/ash/accelerators/accelerator_table.cc
index 4c772aec307ba8ba4582344d6ba0d26958d49ff5..0fc0901e4ea81314881269fc23ee325d82684347 100644
--- a/ash/accelerators/accelerator_table.cc
+++ b/ash/accelerators/accelerator_table.cc
@@ -262,7 +262,10 @@ const AcceleratorData kDebugAcceleratorData[] = {
MAGNIFY_SCREEN_ZOOM_OUT},
{true, ui::VKEY_BRIGHTNESS_UP, ui::EF_CONTROL_DOWN, MAGNIFY_SCREEN_ZOOM_IN},
// Extra shortcuts to lock the screen on linux desktop.
- {true, ui::VKEY_L, ui::EF_ALT_DOWN, LOCK_SCREEN},
+ {true, ui::VKEY_L, ui::EF_ALT_DOWN, LOCK_PRESSED},
+ {false, ui::VKEY_L, ui::EF_ALT_DOWN, LOCK_RELEASED},
+ {true, ui::VKEY_P, ui::EF_ALT_DOWN, POWER_PRESSED},
+ {false, ui::VKEY_P, ui::EF_ALT_DOWN, POWER_RELEASED},
{true, ui::VKEY_POWER, ui::EF_SHIFT_DOWN, LOCK_PRESSED},
{false, ui::VKEY_POWER, ui::EF_SHIFT_DOWN, LOCK_RELEASED},
{true, ui::VKEY_D, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN,
« no previous file with comments | « no previous file | ash/shelf/shelf_locking_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698