ExtendedComboBox.st
changeset 6106 78049c3f344d
parent 6087 8577d65ffc75
child 6109 03ab498eafa1
--- a/ExtendedComboBox.st	Sun Aug 11 14:25:39 2019 +0200
+++ b/ExtendedComboBox.st	Sun Aug 11 14:28:04 2019 +0200
@@ -880,6 +880,18 @@
 
 !ExtendedComboBox methodsFor:'event handling'!
 
+buttonPress:button x:x y:y
+    "handle a button press event"
+
+    <resource: #keyboard (#Return)>
+
+    self enabled ifTrue:[
+        self openMenu.
+        ^ self.
+    ].
+    super buttonPress:button x:x y:y
+!
+
 keyPress:key x:x y:y
     "handle a key press event"
 
@@ -887,7 +899,8 @@
 
     (key == Character space or:[key == #Return]) ifTrue:[
         self enabled ifTrue:[
-            self openMenu
+            self openMenu.
+            ^ self
         ]
     ] ifFalse:[
         super keyPress:key x:x y:y
@@ -1178,6 +1191,7 @@
     menuWrapper height:h.
 
     menuWrapper origin:menuOrigin extent:(w@h).
+    menuWrapper beUndecorated.
     menuWrapper openModal.
     menuWrapper notNil ifTrue:[
         menuWrapper realized ifTrue:[