diff options
Diffstat (limited to 'WebCore/editing/EditingBehavior.h')
-rw-r--r-- | WebCore/editing/EditingBehavior.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/editing/EditingBehavior.h b/WebCore/editing/EditingBehavior.h index d442ad6..842d3f2 100644 --- a/WebCore/editing/EditingBehavior.h +++ b/WebCore/editing/EditingBehavior.h @@ -53,6 +53,10 @@ public: // style has to be present throughout the selection. bool shouldToggleStyleBasedOnStartOfSelection() const { return m_type == EditingMacBehavior; } + // Standard Mac behavior when extending to a boundary is grow the selection rather than leaving the base + // in place and moving the extent. Matches NSTextView. + bool shouldAlwaysGrowSelectionWhenExtendingToBoundary() const { return m_type == EditingMacBehavior; } + private: EditingBehaviorType m_type; }; |