Add API to control OS X wxTextCtrl’s smart behavior
Allow the user to customize smart quotes and dashes substutions on OS X and also provide the OSXDisableAllSmartSubstitutions() method for disabling them all at once.
This commit is contained in:
@@ -863,6 +863,18 @@ void wxNSTextViewControl::CheckSpelling(bool check)
|
||||
[m_textView setContinuousSpellCheckingEnabled: check];
|
||||
}
|
||||
|
||||
void wxNSTextViewControl::EnableAutomaticQuoteSubstitution(bool enable)
|
||||
{
|
||||
if (m_textView)
|
||||
[m_textView setAutomaticQuoteSubstitutionEnabled:enable];
|
||||
}
|
||||
|
||||
void wxNSTextViewControl::EnableAutomaticDashSubstitution(bool enable)
|
||||
{
|
||||
if (m_textView)
|
||||
[m_textView setAutomaticDashSubstitutionEnabled:enable];
|
||||
}
|
||||
|
||||
wxSize wxNSTextViewControl::GetBestSize() const
|
||||
{
|
||||
if (m_textView && [m_textView layoutManager])
|
||||
|
Reference in New Issue
Block a user