Bug 1003 : easy way to disable "esc"-exit
Last modified: 2008-11-07 15:24




Status:
RESOLVED
Resolution:
WONTFIX -
Priority:
P2
Severity:
enhancement

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-11-07 13:58
we've had problems with the "esc" key shortcut that would allow visitors to quit our installations.
... and i've seen commercial applets built with processing that you could quit mid-way.

how about an easy way to disable the esc-shortcut? maybe: "disableEscQuit()"?

F
Additional Comment #1 From fry 2008-11-07 14:40
or they could read the reference?
http://processing.org/reference/environment/export.html#present

we haven't bothered to make it a function because the fix:

if (key == ESC) key == 0

isn't much longer than a function name. and the same people aren't likely
to find the reference function either.
Additional Comment #2 From fjen 2008-11-07 15:22
ha! never stop learnin' ... thanks!
F