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

Unified Diff: Source/core/editing/EditingBehavior.h

Issue 43143003: Undo of delete/forward-delete of text should not select the deleted text on non-mac platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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: Source/core/editing/EditingBehavior.h
diff --git a/Source/core/editing/EditingBehavior.h b/Source/core/editing/EditingBehavior.h
index 6c2f994cd6f375799b112bf0ce872aa2bdfe68ee..6174c85e780d6b3eb02e3e67b519f9f430452565 100644
--- a/Source/core/editing/EditingBehavior.h
+++ b/Source/core/editing/EditingBehavior.h
@@ -79,6 +79,10 @@ public:
// But ctrl+right arrow moves caret to "abc |def |hij |opq" on Windows and "abc| def| hij| opq|" on Mac and Linux.
bool shouldSkipSpaceWhenMovingRight() const { return m_type == EditingWindowsBehavior; }
+ // On Mac, undo of delete/forward-delete of a word should select the deleted word. On other platforms deleted word
+ // should not be selected and the cursor should be placed where the deletion started.
+ bool shouldUndoOfWordDeletionSelectWord() const { return m_type == EditingMacBehavior; }
ojan 2013/10/26 01:36:01 This name isn't quite right. It's not just word se
+
private:
EditingBehaviorType m_type;
};

Powered by Google App Engine
This is Rietveld 408576698