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

Unified Diff: content/browser/renderer_host/input/web_input_event_builders_mac.mm

Issue 2338923003: MacOS handle cmd+V directly in WebKit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 | « no previous file | third_party/WebKit/Source/core/editing/EditingBehavior.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/web_input_event_builders_mac.mm
diff --git a/content/browser/renderer_host/input/web_input_event_builders_mac.mm b/content/browser/renderer_host/input/web_input_event_builders_mac.mm
index 8ca506cfa82525c45975cdfb1eacff623b6da87e..afd45bc51a79981ff96f623b16ab11ffb976cb4b 100644
--- a/content/browser/renderer_host/input/web_input_event_builders_mac.mm
+++ b/content/browser/renderer_host/input/web_input_event_builders_mac.mm
@@ -226,6 +226,10 @@ bool IsSystemKeyEvent(const blink::WebKeyboardEvent& event) {
if (modifiers == blink::WebInputEvent::MetaKey &&
event.windowsKeyCode == ui::VKEY_I)
return false;
+ // Add exception for cmd-v for do paste into webpages more quickly.
+ if (modifiers == blink::WebInputEvent::MetaKey &&
+ event.windowsKeyCode == ui::VKEY_V)
+ return false;
return event.modifiers & blink::WebInputEvent::MetaKey;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingBehavior.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698