SelectionInListView.st
changeset 5666 cb5ef2978993
parent 5664 a8ecef1ff7e2
child 5667 abf48da94d00
child 5674 7a82399d403b
--- a/SelectionInListView.st	Thu Apr 14 19:51:43 2016 +0200
+++ b/SelectionInListView.st	Sun Apr 17 14:49:52 2016 +0200
@@ -2679,10 +2679,22 @@
                 s := self characterSearchItemStringAt:searchIndex.
                 s notNil ifTrue:[
                     (s string withoutSeparators asLowercase startsWith:searchPrefix) ifTrue:[
+                        |selectable didAskInteractively|
+                        
                         searchIndex = selection ifTrue:[^ self].
-                        (selectConditionBlock isNil or:[(selectConditionBlock value:searchIndex)]) ifTrue:[
+                        Dialog aboutToOpenBoxNotificationSignal
+                            handle:[:ex |
+                                didAskInteractively := true.
+                                selectable := false.
+                            ] do:[    
+                                didAskInteractively := false.
+                                selectable := selectConditionBlock isNil or:[(selectConditionBlock value:searchIndex)].
+                            ].
+                            
+                        selectable ifTrue:[
                             ^ self key:key select:searchIndex x:x y:y shifted:false
                         ].
+                        didAskInteractively ifTrue:[^ self]. "/ ignore
                     ].
                 ].
                 backSearch ifTrue:[