/// <summary> /// Dispatch only if focus lost wasn't caused due to pressing `Esc` key. /// </summary> private void DispatchUpdateTodoTextIfNotEscaped() { if (!_isEscaped) { DispatchUpdateTodoText?.Invoke(Id, TextEditor); } _isEscaped = false; }
/// <summary> /// Handle Enter key press event on `TextEditor` textbox. /// </summary> public void OnTextEditorEnterKeyPress() => DispatchUpdateTodoText?.Invoke(Id, TextEditor);