diff --git a/modules/juce_gui_basics/widgets/juce_TextEditor.h b/modules/juce_gui_basics/widgets/juce_TextEditor.h index 2ccbfe001d..4dd5b2106c 100644 --- a/modules/juce_gui_basics/widgets/juce_TextEditor.h +++ b/modules/juce_gui_basics/widgets/juce_TextEditor.h @@ -568,6 +568,9 @@ public: */ void setInputFilter (InputFilter* newFilter, bool takeOwnership); + /** Returns the current InputFilter, as set by setInputFilter(). */ + InputFilter* getInputFilter() const noexcept { return inputFilter; } + /** Sets limits on the characters that can be entered. This is just a shortcut that passes an instance of the LengthAndCharacterRestriction class to setInputFilter().