Example #1
0
void HadronLabel::textEditorEscapeKeyPressed(TextEditor& editor)
{
    if (use_modal_editor_) {
        editor.exitModalState(0);
    }
    else {
        Label::textEditorEscapeKeyPressed(editor);
    }
}
Example #2
0
void HadronLabel::textEditorFocusLost(TextEditor& editor)
{
    if (use_modal_editor_) {
        editor.exitModalState(0);
    }
    else {
        Label::textEditorFocusLost(editor);
    }
}
Example #3
0
void HadronLabel::textEditorReturnKeyPressed(TextEditor& editor)
{
    if (use_modal_editor_) {
        setText(editor.getText(), true);
        editor.exitModalState(0);
    }
    else {
        Label::textEditorReturnKeyPressed(editor);
    }
}
 void textEditorFocusLost (TextEditor& editor)           { editor.exitModalState (0); }
 void textEditorEscapeKeyPressed (TextEditor& editor)    { editor.exitModalState (0); }
 void textEditorReturnKeyPressed (TextEditor& editor)    { editor.exitModalState (1); }