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

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

Issue 1999773002: views::Textfield: Implement transpose editing command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. 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
« no previous file with comments | « ui/base/ime/text_edit_commands.h ('k') | ui/views/cocoa/bridged_native_widget_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8aab6665eeab5ce360fa1776c19013a22fd11d31..457127f4e75289302393333474e55dddda1ea3a7 100644
--- a/ui/views/cocoa/bridged_content_view.mm
+++ b/ui/views/cocoa/bridged_content_view.mm
@@ -977,6 +977,15 @@ ui::KeyEvent GetCharacterEventFromNSEvent(NSEvent* event) {
: [self moveToEndOfLineAndModifySelection:sender];
}
+// Graphical Element transposition
+
+- (void)transpose:(id)sender {
+ [self handleAction:ui::TextEditCommand::TRANSPOSE
+ keyCode:ui::VKEY_T
+ domCode:ui::DomCode::US_T
+ eventFlags:ui::EF_CONTROL_DOWN];
+}
+
// Deletions.
- (void)deleteForward:(id)sender {
« no previous file with comments | « ui/base/ime/text_edit_commands.h ('k') | ui/views/cocoa/bridged_native_widget_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698