[android-components](../../../index.md) / [mozilla.components.concept.toolbar](../../index.md) / [Toolbar](../index.md) / [OnEditListener](index.md) / [onCancelEditing](./on-cancel-editing.md)

# onCancelEditing

`open fun onCancelEditing(): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/toolbar/src/main/java/mozilla/components/concept/toolbar/Toolbar.kt#L142)

Fired when the user presses the back button while in edit mode.

