← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #447658]: Exit Sikuli in JavaAPI

 

Question #447658 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/447658

    Status: Open => Answered

RaiMan proposed the following answer:
HotkeyManager.getInstance().addHotkey(Key.ESC, KeyModifier.CTRL, new HotkeyListener() {
    @Override
    public void hotkeyPressed(HotkeyEvent e) {
      System.exit(0);
    }
});

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.