backKey

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
backKey
Summary

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

Introduced5.0.1
OSandroid
Platformsmobile
Example
on backKey
  answer "You pressed the back key" with "Okay"
end backKey
RelatedProperty: defaultStack
Message: searchKey, menuKey
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.

Tagsui