Oops, fix for previous commit: avoid duplicate characters inserted when completion is unambiguous.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 18 Jun 2014 10:26:41 +0100
changeset 241 174331ea79a5
parent 240 e2277fd8f082
child 242 7a056a0ab77c
child 246 9e5790683f85
child 343 b3d22e8c0a05
Oops, fix for previous commit: avoid duplicate characters inserted when completion is unambiguous.
SmallSense__CompletionController.st
--- a/SmallSense__CompletionController.st	Tue Jun 17 16:08:35 2014 +0100
+++ b/SmallSense__CompletionController.st	Wed Jun 18 10:26:41 2014 +0100
@@ -93,13 +93,15 @@
             ^ true
         ].
         key isCharacter ifTrue:[
-            self updateSelectionAfterKeyPress: key.
+            (self updateSelectionAfterKeyPress: key) ifTrue:[ 
+                ^ true
+            ].
         ].
     ].
     ^ super handleKeyPress:key x:x y:y
 
     "Created: / 27-09-2013 / 15:38:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 17-06-2014 / 07:24:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 18-06-2014 / 10:17:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 handleKeyPressTab