Commit 625811bfd5881ddb9ab4e99121aca96bb8abf548

Authored by Adeel Kazmi
1 parent 929bd293

(Builder) Back button goes back to main menu rather than exit

[Problem]  If in a builder example and back (or ESC) is pressed, the builder example exits.
[Solution] Check if showing the list, and only then exit. If not showing the list of scripts then
           go back to the list.

Change-Id: I90ebce9ffba34bdb36b0ee79820d0c01bf638857
Showing 1 changed file with 8 additions and 1 deletions
examples/builder/examples.cpp
... ... @@ -566,7 +566,14 @@ public:
566 566 {
567 567 if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) )
568 568 {
569   - mApp.Quit();
  569 + if ( mItemView.IsVisible() )
  570 + {
  571 + mApp.Quit();
  572 + }
  573 + else
  574 + {
  575 + EnterSelection();
  576 + }
570 577 }
571 578 }
572 579 }
... ...