Index: Source/core/editing/EditingBehavior.h |
diff --git a/Source/core/editing/EditingBehavior.h b/Source/core/editing/EditingBehavior.h |
index 6c2f994cd6f375799b112bf0ce872aa2bdfe68ee..395ebe6a6bbf46abcf98110e28eb0e70c4533f13 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 text should select the deleted text. On other platforms deleted text |
+ // should not be selected and the cursor should be placed where the deletion started. |
+ bool shouldUndoOfDeleteSelectText() const { return m_type == EditingMacBehavior; } |
+ |
private: |
EditingBehaviorType m_type; |
}; |