diff --git a/Lib/vanilla/vanillaWindows.py b/Lib/vanilla/vanillaWindows.py index ce6f9a1..be3008e 100644 --- a/Lib/vanilla/vanillaWindows.py +++ b/Lib/vanilla/vanillaWindows.py @@ -459,12 +459,15 @@ def _alertBindings(self, key): # call the delegate method which calls # this method) before the super # call in __init__ is complete. + returnValues = [] if hasattr(self, "_bindings"): if key in self._bindings: for callback in self._bindings[key]: - # XXX this return causes only the first binding to be called XXX - # see http://code.typesupply.com/ticket/2 - return callback(self) + value = callback(self) + if value is not None: + # elimitate None return value + returnValues.append(value) + return all(returnValues) def windowWillClose_(self, notification): self.hide()