SmallSense__SmalltalkEditSupport.st
changeset 219 c69943a410fd
parent 217 6ff466b83ff9
child 234 97857872ee47
--- a/SmallSense__SmalltalkEditSupport.st	Sun May 18 12:29:12 2014 +0100
+++ b/SmallSense__SmalltalkEditSupport.st	Sun May 18 12:57:20 2014 +0100
@@ -184,11 +184,13 @@
     lastTypedKey0 := key.
 
     key == #CodeCompletion ifTrue:[ 
-        completionController notNil ifTrue:[
-            ^ completionController handleKeyPress:key x:x y:y 
+        | controller |
+
+        (controller := self textView completionSupport) notNil ifTrue:[
+            ^ controller handleKeyPress:key x:x y:y 
         ].
         ^ false
-    ].     
+    ]. 
 
     key == #BackSpace ifTrue:[
         backspaceIsUndo ifTrue:[
@@ -226,7 +228,7 @@
     ^ false.
 
     "Created: / 07-03-2010 / 09:36:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 17-05-2014 / 21:22:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 18-05-2014 / 12:45:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 keyPressDoubleColon