[squeak-dev] The Trunk: Morphic-cbc.1664.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Jun 5 17:13:42 UTC 2020

Hi Chris,

> Which context are you wanting to select/copy/interact with the dialog contents?

just update your image, or to manually trigger that message, do:

self inform: (MCMcmUpdater new updateMessageFor: 0).

I love this feature and would not like to miss it again in arbitrary dialog windows.

Indeed I can also imagine keyboard control for selecting within the message would be a nice feature. However, I was confused by Enter not any longer closing the dialog, too.

Could we kind of override #mouseOverForKeyboardFocus in this text morph? Then you would need to click into the text once before you can press <cmd>a, for example, to select the whole message.

We would only need to add such a hook to PluggableTextMorph and add it to the ToolBuilder protocol.


Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Chris Cunningham <cunningham.cb at gmail.com>
Gesendet: Freitag, 5. Juni 2020 18:28 Uhr
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] The Trunk: Morphic-cbc.1664.mcz

Hmm.  Which context are you wanting to select/copy/interact with the dialog contents?

I do see the clickable URLs - those I definitely want (awesome), but not at the expense of killing other ingrained interactions.

Maybe another approach is to create a specific 'interactionable' dialog and other non-interactionable.  Or move several of the existing users of the this class to a newer class?

The context where this finally drove me over the edge was when creating  new categories, I'd type in and partially select an existing category, hit entry, then couldn't actually select a confirmation choice except by mouse - no keyboard shortcuts allowed.

Alternatively, maybe a #keyboardLocked method?


On Fri, Jun 5, 2020 at 8:41 AM Marcel Taeumel <marcel.taeumel at hpi.de<mailto:marcel.taeumel at hpi.de>> wrote:
Hi there!

...and the text of larger dialogs can once again not be selected, copied, and interacted with anymore. Think of clickable text URLs.

Maybe we find a better solution. :-)

#lock is generic in Morphic to reject all events
#readOnly: is specific to text fields to not mess up its contents

Something like #rejectsKeyboardFocus .... along the line of #keyboardFocusDelegate...

Note that this is not a -1. Its okay that you -- kind of -- reverted my recent change to DialogMorph where I made text contents more accessible. There was another issue with message-category creation and the keyboard-focus interfering...

We will find something.


Am 05.06.2020 17:31:30 schrieb commits at source.squeak.org<mailto:commits at source.squeak.org> <commits at source.squeak.org<mailto:commits at source.squeak.org>>:

Chris Cunningham uploaded a new version of Morphic to project The Trunk:

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

Name: Morphic-cbc.1664
Author: cbc
Time: 5 June 2020, 8:31:07.419315 am
UUID: bf356d19-6ce6-6f4f-8c68-5f973a0c9f0c
Ancestors: Morphic-mt.1632, Morphic-mt.1663

locked messageMorph in DialogWindow so that the morph can once again be controlled by keystrokes.

=============== Diff against Morphic-mt.1663 ===============

Item was changed:
----- Method: DialogWindow>>createMessage: (in category 'initialization') -----
createMessage: aString

messageMorph := aString asText asMorph.
name: 'Message';
readOnly: true;
+ setProperty: #indicateKeyboardFocus toValue: #never;
+ lock.
- setProperty: #indicateKeyboardFocus toValue: #never.
self setMessageParameters.
^ messageMorph!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200605/1f3c1f26/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20132 bytes
Desc: image.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200605/1f3c1f26/attachment-0001.png>

More information about the Squeak-dev mailing list