Skip to main content

backKey

Type​

message

Summary​

Sent to the current card of the defaultStack when the hardware back button is pressed.

Syntax​

backKey

Description​

Handle the backKey message to perform an action when the back button is pressed.

The backKey message is sent to the current card of the defaultStack when the hardware back button is pressed.

note

If this message is passed or not handled, then the engine automatically quits.

Examples​

on backKey
answer "You pressed the back key" with "Okay"
end backKey

message: searchKey, menuKey

property: defaultStack

Compatibility and Support​

Introduced

LiveCode 5.0.1

OS

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?