Is it possible to press ESC and stay in the presentation mode ?

Hi, Please tell me that it's possible. That would really help me ! :D

Answers

  • Answer ✓

    What do you meant with presentation mode?

    you can catch esc with if(key==Esc) .....

    And then key=0;

  • edited May 2017

    i've tried to press ESC key then register a .txt file before exit() but it's not working

     if (quit == true) {                                                      //Quit (yes)
                    output.flush(); 
                    output.close(); 
                    println("The file has been download");
                  }
    

    what i want to do is :

    void keyPressed(){
        if( key == ESC){
          quit = true;
        }
    }
    

    But it's not working

  • edited May 2017 Answer ✓

    add this key=0;

    to kill Escape.

    void keyPressed(){
        if( key == ESC){
          key=0;
          quit = true;
        }
    }
    
  • Override exit()?

    Kf

  • yes kf

    but Chrisir have the answer :) thanks again !

Sign In or Register to comment.