[squeak-dev] The Inbox: Morphic-ct.1787.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Tue Oct 19 13:39:41 UTC 2021


This check should be implemented via #handlesKeyboard:, not in #keyStroke:.

Best,
Marcel
Am 18.10.2021 18:00:38 schrieb commits at source.squeak.org <commits at source.squeak.org>:
A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-ct.1787.mcz

==================== Summary ====================

Name: Morphic-ct.1787
Author: ct
Time: 18 October 2021, 6:00:19.065559 pm
UUID: 5a7cd867-c35a-bf4a-9f21-4f51eae8b612
Ancestors: Morphic-ul.1780

Don't raise an error when pressing a key while focusing an empty scroll bar (such as the main panel in a freshly opened preference browser).

=============== Diff against Morphic-ul.1780 ===============

Item was changed:
----- Method: ScrollPane>>keyStroke: (in category 'event handling') -----
keyStroke: evt
"If pane is not empty, pass the event to the last submorph,
 assuming it is the most appropriate recipient (!!)"

+ scroller hasSubmorphs ifTrue:
+ [scroller lastSubmorph keyStroke: evt].!
- scroller submorphs last keyStroke: evt!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211019/12ec74a4/attachment.html>


More information about the Squeak-dev mailing list