diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-26 14:16:34 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-26 14:16:34 +0000 |
commit | 6110e68c90d36f475551322818f1bf77b2670eda (patch) | |
tree | c9388ef048e26ef8b8a4f907d87b4f543f448d66 /webkit/glue/editor_client_impl.cc | |
parent | 6aba927da64e37fbce0b7462fde0915956ed78d8 (diff) | |
download | chromium_src-6110e68c90d36f475551322818f1bf77b2670eda.zip chromium_src-6110e68c90d36f475551322818f1bf77b2670eda.tar.gz chromium_src-6110e68c90d36f475551322818f1bf77b2670eda.tar.bz2 |
[mac] Send cmd-c and friends back to browser.
Fixes cmd-c, cmd-v, cmd-x, cmd-a.
The menu blinking is worth the extra IPC hop.
BUG=25254
TEST=Select text, hit cmd-c. "Edit" menu should blink. Hit cmd-v. "Edit" menu should blink again, correct text should be pasted.
Review URL: http://codereview.chromium.org/330014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc index 80077ef..3e87091 100644 --- a/webkit/glue/editor_client_impl.cc +++ b/webkit/glue/editor_client_impl.cc @@ -458,16 +458,15 @@ static const KeyDownEntry keyDownEntries[] = { { WebCore::VKEY_INSERT, ShiftKey, "Paste" }, { WebCore::VKEY_DELETE, ShiftKey, "Cut" }, #if PLATFORM(DARWIN) - { 'C', CommandKey, "Copy" }, - { 'V', CommandKey, "Paste" }, + // TODO(thakis): Remove -- crbug.com/25205 { 'V', CommandKey | ShiftKey, "PasteAndMatchStyle" }, - { 'X', CommandKey, "Cut" }, - { 'A', CommandKey, "SelectAll" }, + + // TODO(port): Remove once undo and redo are hooked up correctly in the menu + // and are validated correctly. { 'Z', CommandKey, "Undo" }, { 'Z', CommandKey | ShiftKey, "Redo" }, - { 'Y', CommandKey, "Redo" }, #else { 'C', CtrlKey, "Copy" }, { 'V', CtrlKey, "Paste" }, |