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

Side by Side Diff: chrome/browser/ui/ash/event_rewriter.h

Issue 11280153: Add Search-. as a shortcut for the Insert key when Search is acting as a Function key. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 80cols Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_
6 #define CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ 6 #define CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // * Alt+Backspace -> Delete 166 // * Alt+Backspace -> Delete
167 // * Alt+Up -> Prior (aka PageUp) 167 // * Alt+Up -> Prior (aka PageUp)
168 // * Alt+Down -> Next (aka PageDown) 168 // * Alt+Down -> Next (aka PageDown)
169 // * Ctrl+Alt+Up -> Home 169 // * Ctrl+Alt+Up -> Home
170 // * Ctrl+Alt+Down -> End 170 // * Ctrl+Alt+Down -> End
171 // When the Search key acts as a function key, it instead maps: 171 // When the Search key acts as a function key, it instead maps:
172 // * Search+Backspace -> Delete 172 // * Search+Backspace -> Delete
173 // * Search+Up -> Prior (aka PageUp) 173 // * Search+Up -> Prior (aka PageUp)
174 // * Search+Down -> Next (aka PageDown) 174 // * Search+Down -> Next (aka PageDown)
175 // * Search+Left -> Home 175 // * Search+Left -> Home
176 // * Search+right -> End 176 // * Search+Right -> End
177 // * Search+. -> Insert
177 // Returns true when the |event| is rewritten. 178 // Returns true when the |event| is rewritten.
178 bool RewriteBackspaceAndArrowKeys(ui::KeyEvent* event); 179 bool RewriteBackspacePeriodAndArrowKeys(ui::KeyEvent* event);
Daniel Erat 2012/12/01 22:14:12 this name's getting a bit unwieldy (alas, C doesn'
danakj 2012/12/03 17:46:28 I used RewriteExtendedKeys(). The function also r
179 180
180 // When the Search key acts as a function key, it remaps Search+1 181 // When the Search key acts as a function key, it remaps Search+1
181 // through Search+= to F1 through F12. Returns true when the |event| is 182 // through Search+= to F1 through F12. Returns true when the |event| is
182 // rewritten. 183 // rewritten.
183 bool RewriteFunctionKeys(ui::KeyEvent* event); 184 bool RewriteFunctionKeys(ui::KeyEvent* event);
184 185
185 // Rewrites the located |event|. 186 // Rewrites the located |event|.
186 void RewriteLocatedEvent(ui::LocatedEvent* event); 187 void RewriteLocatedEvent(ui::LocatedEvent* event);
187 188
188 // Overwrites |event| with the keycodes and flags. 189 // Overwrites |event| with the keycodes and flags.
(...skipping 28 matching lines...) Expand all
217 218
218 chromeos::input_method::XKeyboard* xkeyboard_; // for testing. 219 chromeos::input_method::XKeyboard* xkeyboard_; // for testing.
219 #endif 220 #endif
220 221
221 const PrefService* pref_service_; // for testing. 222 const PrefService* pref_service_; // for testing.
222 223
223 DISALLOW_COPY_AND_ASSIGN(EventRewriter); 224 DISALLOW_COPY_AND_ASSIGN(EventRewriter);
224 }; 225 };
225 226
226 #endif // CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ 227 #endif // CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/keyboard_overlay.js ('k') | chrome/browser/ui/ash/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698