--- a/MenuEditor.st Wed Nov 10 13:19:40 2004 +0100
+++ b/MenuEditor.st Thu Nov 11 10:12:57 2004 +0100
@@ -2072,11 +2072,12 @@
!MenuEditor methodsFor:'event processing'!
processEvent:anEvent
- "filter keyboard edit-events typed into the listOfItemsView
- "
+ "filter keyboard edit-events typed into the listOfItemsView.
+ Return true, if I have eaten the event"
+
|evView inView rawKey key|
- anEvent isKeyPressEvent ifFalse:[^ false].
+ anEvent isKeyPressEvent ifFalse:[ ^ false].
evView := anEvent targetView.
evView ifNil:[ ^ false ].
@@ -2092,13 +2093,13 @@
or:[key == #Cut]]
) ifTrue:[
self doCut.
- ^ true.
+ ^ true.
].
key == #Copy ifTrue:[ self doCopy. ^ true ].
key == #Paste ifTrue:[ self doPaste. ^ true ].
- ^ false
+ ^ false
! !
!MenuEditor methodsFor:'initialization & release'!