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

Unified Diff: ui/views/cocoa/bridged_content_view.mm

Issue 2119813002: views::Textfield: Implement yank editing command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: ui/views/cocoa/bridged_content_view.mm
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm
index b6c94e328eb2216458eadaab561ea5f179033f41..f44d3db36338333f5cf914f6f84d2822cb29787e 100644
--- a/ui/views/cocoa/bridged_content_view.mm
+++ b/ui/views/cocoa/bridged_content_view.mm
@@ -1072,6 +1072,13 @@ ui::KeyEvent GetCharacterEventFromNSEvent(NSEvent* event) {
[self deleteToEndOfLine:sender];
}
+- (void)yank:(id)sender {
+ [self handleAction:ui::TextEditCommand::YANK
+ keyCode:ui::VKEY_Y
+ domCode:ui::DomCode::US_Y
+ eventFlags:ui::EF_CONTROL_DOWN];
+}
+
// Cancellation.
- (void)cancelOperation:(id)sender {

Powered by Google App Engine
This is Rietveld 408576698