View Single Post
More keys for When "<key> is typed" event
Old
aikmin
Senior Member
 
aikmin's Avatar
 
Status: Offline
Posts: 85
Join Date: Mar 2008
Default More keys for When "<key> is typed" event - 11-18-2013, 12:08 AM

Edit your \Required\resources\common\StandardResources.py file.

Find this section in the file:
["edu.cmu.cs.stage3.alice.core.behavior.KeyClic kBeh avior",
["keyCode",
java.awt.event.KeyEvent.VK_SPACE,
java.awt.event.KeyEvent.VK_ENTER, ...

Add the items/keys you want.

If you are not sure of the keyCode, refer to http://docs.oracle.com/javase/7/docs.../KeyEvent.html

Repeat for (if needed):
["edu.cmu.cs.stage3.alice.core.behavior.KeyIsPr esse dBehavior",
["keyCode",
java.awt.event.KeyEvent.VK_SPACE,
java.awt.event.KeyEvent.VK_ENTER,...
   
Reply With Quote