'From etoys3.0 of 28 February 2008 [latest update: #2050] on 30 July 2008 at 4:51:36 pm'! "Change Set: keystroke-sw Date: 2 August 2008 Author: Scott Wallace TRAC #7779: lastKeystroke malfunction in player moved to different project Make the lastKeystroke slot available to all objects, not just the World, and make it always report the last keystroke in the current project's world, whether or not the receiver resides in that world."! !Morph class methodsFor: 'scripting' stamp: 'sw 7/30/2008 16:38'! additionsToViewerCategoryInput "Answer a list of ( ) pairs that characterize the phrases this kind of morph wishes to add to various Viewer categories." ^ #(input ( (slot lastKeystroke 'The last unhandled keystroke' String readWrite Player getLastKeystroke Player setLastKeystroke:) ))! ! !Player methodsFor: 'slot getters/setters' stamp: 'sw 7/30/2008 16:20'! getLastKeystroke "Answer the last keystroke fielded" ^ ActiveWorld lastKeystroke! ! !Player methodsFor: 'slot getters/setters' stamp: 'sw 7/30/2008 16:17'! setLastKeystroke: aString "Set the last keystroke fielded" ActiveWorld lastKeystroke: aString! !