Alice Community  

Go Back   Alice Community > Alice 2 > Suggestion Box

Thread Tools Display Modes
Add more Keys to the When Key Is Pressed Event
Senior Member
AliceMaster00's Avatar
Status: Offline
Posts: 167
Join Date: Oct 2011
Location: You know that gap between the bottom of your dresser and the floor? Yeah, there.
Default Add more Keys to the When Key Is Pressed Event - 07-31-2013, 08:37 AM

Can you guys add keys like Left Shift or Control, or even Escape?

What a piece of work is a man? How noble in reason, how infinite in faculties, in form and in motion, how express and admirable how like an angel! What apprehension oh how like a god! The beauty of thee world, the paragon of animals, and yet- to me, what is this quintessence o' dust? Man delights, not me. Nor woman either, nor woman either.
Reply With Quote
More keys for When "<key> is typed" event
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:02 AM

Edit your \Required\resources\common\ file.

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

Add the items/keys you want.

If you are not sure of the keyCode, refer to

Repeat for (if needed):
["edu.cmu.cs.stage3.alice.core.behavior.KeyIsPresse dBehavior",

Last edited by aikmin; 11-18-2013 at 12:04 AM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.