escape lock

Hi

Is it possible to stop the escape key being used to quit the running compiled .exe ? I’d like to use an alternative key combination instead.

Thanks

hi chris

no problem, but you have to hack OF for now – just comment out this

  
  
if (key == 27){				// "escape"  
		 OF_EXIT_APP(0);  
	}  
  

in ofGlutGlue

take care!!
zach

hmm… it would be very nice to have an option to do this without a core hack… especially now that the library is now distributed pre-compiled.

I posted one solution in this thread:

http://forum.openframeworks.cc/t/veto-esc-and-cmd+q/2616/0

It seems like the feature has been requested quite a bit in the forums… perhaps we might see it in a future release?

Thanks!
-plong0

yes definitely this is a very important request. it will be in the 007 release:

ofSetEscapeQuitsApp(…);

it’s currently in ofEvents, in the code on github.

thanks!
zach