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

Unified Diff: ui/events/keycodes/keyboard_code_conversion_mac.mm

Issue 152643007: mac: Create a static mapping of accelerators in the main menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@acc_list
Patch Set: Indent error. 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
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_mac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/keycodes/keyboard_code_conversion_mac.mm
diff --git a/ui/events/keycodes/keyboard_code_conversion_mac.mm b/ui/events/keycodes/keyboard_code_conversion_mac.mm
index fdda790be1fb10ca6f4c974a9a21c9a9046cdb49..e354e58883cbebb5bddf6e1a47da7a0b20e77869 100644
--- a/ui/events/keycodes/keyboard_code_conversion_mac.mm
+++ b/ui/events/keycodes/keyboard_code_conversion_mac.mm
@@ -521,18 +521,6 @@ int MacKeyCodeForWindowsKeyCode(KeyboardCode keycode,
}
}
- // Control characters.
- if (flags & NSControlKeyMask) {
- if (keycode >= VKEY_A && keycode <= VKEY_Z)
- *character = 1 + keycode - VKEY_A;
- else if (macKeycode == kVK_ANSI_LeftBracket)
- *character = 27;
- else if (macKeycode == kVK_ANSI_Backslash)
- *character = 28;
- else if (macKeycode == kVK_ANSI_RightBracket)
- *character = 29;
- }
-
// TODO(suzhe): Support characters for Option key bindings.
return macKeycode;
}
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698