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

Unified Diff: ash/accelerators/accelerator_table.cc

Issue 155493002: Add key based scrolling on magnified screen for kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: ash/accelerators/accelerator_table.cc
diff --git a/ash/accelerators/accelerator_table.cc b/ash/accelerators/accelerator_table.cc
index a3303f6ec21f53a8c0efafb7102b141dfc52bef4..7caabc23e4d2a979e5245fc0e9890fd3726bea3a 100644
--- a/ash/accelerators/accelerator_table.cc
+++ b/ash/accelerators/accelerator_table.cc
@@ -433,4 +433,22 @@ const AcceleratorAction kActionsNeedingWindow[] = {
const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow);
+#if defined(OS_CHROMEOS)
+// We're using NUMPAD keys as they're most likely unused in kiosk mode.
+const AcceleratorData kMagnifierAcceleratorData[] = {
+ { true, ui::VKEY_NUMPAD6, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_UP },
+ { true, ui::VKEY_NUMPAD7, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_DOWN },
+ { true, ui::VKEY_NUMPAD8, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_LEFT },
+ { true, ui::VKEY_NUMPAD9, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_RIGHT },
+
+ { false, ui::VKEY_NUMPAD6, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
+ { false, ui::VKEY_NUMPAD7, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
+ { false, ui::VKEY_NUMPAD8, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
+ { false, ui::VKEY_NUMPAD9, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
+};
+
+const size_t kMagnifierAcceleratorDataLength =
+ arraysize(kMagnifierAcceleratorData);
+#endif
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698