Label::Listener method to signal editing was canceled


#1

Hello,

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).


#2

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


#3

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


#4

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: