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

Unified 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: Created 8 years, 1 month 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: chrome/browser/ui/ash/event_rewriter.h
diff --git a/chrome/browser/ui/ash/event_rewriter.h b/chrome/browser/ui/ash/event_rewriter.h
index d4f197c8a6e83c029dae4d9618e6b99d4c9ba95e..bc8db9a34272bbafabc7b7cc785a9a8f0f12d072 100644
--- a/chrome/browser/ui/ash/event_rewriter.h
+++ b/chrome/browser/ui/ash/event_rewriter.h
@@ -125,8 +125,9 @@ class EventRewriter : public ash::EventRewriterDelegate,
// * Search+Down -> Next (aka PageDown)
// * Search+Left -> Home
// * Search+right -> End
+ // * Search+\ -> Insert
// Returns true whn the |event| is rewritten.
- bool RewriteBackspaceAndArrowKeys(ui::KeyEvent* event);
+ bool RewriteBackspaceBackslashAndArrowKeys(ui::KeyEvent* event);
// When the Search key acts as a function key, it remaps Search+1
// through Search+= to F1 through F12. Returns true whn the |event| is
@@ -187,6 +188,7 @@ class EventRewriter : public ash::EventRewriterDelegate,
unsigned int end_xkeycode_;
unsigned int prior_xkeycode_;
unsigned int next_xkeycode_;
+ unsigned int insert_xkeycode_;
unsigned int kp_0_xkeycode_;
unsigned int kp_1_xkeycode_;
unsigned int kp_2_xkeycode_;

Powered by Google App Engine
This is Rietveld 408576698