Label::Listener method to signal editing was canceled


It’d be nice to have a method in Label::Listener that is called when editing was canceled by the user (e.g. when escape is pressed).

I think you could attach a TextEditor::Listener to the TextEditor that is opened by the Label when you edit it.
I seem to remember it handles some callbacks that can be used in your case

Good point … i’ll try that out but still think that it would be a good addition for the sake of API completeness / consistency

Sure. Mine was just a suggestion for you to get going without having to wait for JUCE to be updated with your proposed methods :slight_smile: