diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-27 20:54:32 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-27 20:54:32 +0000 |
commit | 3e035e83cc63709f1b388156754be65614905e47 (patch) | |
tree | 8656ddab361957d37707caca329db62990b8f583 /ash/shell_delegate.h | |
parent | 18e7e33ce034cbb4423aeb1dc0207725feb4297a (diff) | |
download | chromium_src-3e035e83cc63709f1b388156754be65614905e47.zip chromium_src-3e035e83cc63709f1b388156754be65614905e47.tar.gz chromium_src-3e035e83cc63709f1b388156754be65614905e47.tar.bz2 |
Add power-user keyboard mode for ChromeOS with Search key acting as a typical Fn key.
All new behaviour in this CL is hidden behind the command line flag
--enable-chromebook-function-key.
Currently the keyboard shortcuts for PageUp, PageDown, Delete, etc are all
accessed by holding Alt or Alt+Control. This prevents you from using Alt or
Control as a modifier to the desired keyboard shortcut, which prevents access
to advanced keyboard shortcuts in applications, and even normal shortcuts such
as Control-End to move to the end of the document.
This adds a command line flag --enable-chromebook-function-key that adds a
checkbox to the Keyboard settings UI. When the checkbox is enabled, the
Search key replaces Alt/Control as the modifier used to access advanced
keyboard shortcuts such as Home, Delete, etc. The following shortcuts
become accessible with the Search key:
Search+Up => Page Up
Search+Down => Page Down
Search+Left => Home
Search+Right => End
Search+Backspace => Delete
R=yusukes@chromium.org
BUG=162268
TEST=unit_tests:EventRewriter.TestRewriteBackspaceAndArrowKeys
TEST=ash_unittests:AcceleratorControllerTest.GlobalAcceleratorsToggleAppListWithoutSearchAsModifier
TEST=ash_unittests:AcceleratorControllerTest.GlobalAcceleratorsToggleAppListWithSearchAsModifier
Review URL: https://chromiumcodereview.appspot.com/11421055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r-- | ash/shell_delegate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h index 3c5d433..8555e17 100644 --- a/ash/shell_delegate.h +++ b/ash/shell_delegate.h @@ -189,6 +189,10 @@ class ASH_EXPORT ShellDelegate { // Creates the stacking client. Shell takes ownership of the object. virtual aura::client::StackingClient* CreateStackingClient() = 0; + + // True if the user's preferences have the Search key acting as a Function key + // modifier for accessing extended keyboard shortcuts. + virtual bool IsSearchKeyActingAsFunctionKey() const = 0; }; } // namespace ash |