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; |
}; |