Commit 6f5a5c20 authored by Regan Hsu's avatar Regan Hsu Committed by Commit Bot

[CrOS Settings] Allow zooming in and out on Screen lock pin setup.

Currently, ctrl+= (zoom in) and ctrl+- (zoom out) are ignored while
the Screen lock pin keyboard dialog is onscreen.  This CL ensures that
when the user hits '-' or '=' with ctrl on, zoom in and zoom out occurs.

Fixed: 1032527
Change-Id: I4e0e79bb732b05bc15508e8668e32022efc1ddd9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1976904Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Regan Hsu <hsuregan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726622}
parent 08b78eae
...@@ -413,6 +413,11 @@ Polymer({ ...@@ -413,6 +413,11 @@ Polymer({
return true; return true;
} }
// Valid if the key is CTRL+- or CTRL+= to zoom in and out of the screen.
if ((event.keyCode == 187 || event.keyCode == 189) && event.ctrlKey) {
return true;
}
// The rest of the keys are invalid. // The rest of the keys are invalid.
return false; return false;
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment