equal
deleted
inserted
replaced
104 ! ! |
104 ! ! |
105 |
105 |
106 !CodeCompletionService methodsFor:'event handling'! |
106 !CodeCompletionService methodsFor:'event handling'! |
107 |
107 |
108 keyPress: key x:x y:y in: view |
108 keyPress: key x:x y:y in: view |
109 |
|
110 "Handles an event in given view (a subview of codeView). |
109 "Handles an event in given view (a subview of codeView). |
111 If the method returns true, the event will not be processed |
110 If the method returns true, the event will not be processed |
112 by the view." |
111 by the view." |
113 |
112 |
114 (view == textView and:[key == #'CodeCompletion']) ifTrue: |
113 (view == textView and:[key == #'CodeCompletion']) ifTrue:[ |
115 [self complete. ^true]. |
114 self complete. |
116 ^false |
115 ^ true |
|
116 ]. |
|
117 ^ false |
117 |
118 |
118 "Created: / 07-03-2010 / 09:36:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
119 "Created: / 07-03-2010 / 09:36:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
119 ! ! |
120 ! ! |
120 |
121 |
121 !CodeCompletionService methodsFor:'private'! |
122 !CodeCompletionService methodsFor:'private'! |