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

Chris Cunningham cunningham.cb at gmail.com
Fri Jun 5 16:28:27 UTC 2020


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.
[image: image.png]

Alternatively, maybe a #keyboardLocked method?

-cbc

On Fri, Jun 5, 2020 at 8:41 AM Marcel Taeumel <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.
>
> Best,
> Marcel
>
> Am 05.06.2020 17:31:30 schrieb commits at source.squeak.org <
> commits at source.squeak.org>:
> Chris Cunningham uploaded a new version of Morphic to project The Trunk:
> http://source.squeak.org/trunk/Morphic-cbc.1664.mcz
>
> ==================== 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.
> messageMorph
> 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/2de59147/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20132 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200605/2de59147/attachment.png>


More information about the Squeak-dev mailing list