[squeak-dev] The Trunk: Morphic-mt.1852.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Jan 20 11:46:43 UTC 2022
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1852.mcz
==================== Summary ====================
Name: Morphic-mt.1852
Author: mt
Time: 20 January 2022, 12:46:23.025835 pm
UUID: 1984ed82-28fe-4b43-a07c-157bdf07398a
Ancestors: Morphic-mt.1851
In text fields, fixes #cancelSafely (i.e. CMD+L) for models that directly derive their textual contents user input (i.e. #textEdited:) without an extra #accept step. Examples include all uses of PluggableTextSpec >> #editText: such as Inspector, ObjectExplorer, and SearchBar. And the Debugger, which uses Inspector.
=============== Diff against Morphic-mt.1851 ===============
Item was changed:
----- Method: PluggableTextMorph>>cancelSafely (in category 'menu commands') -----
cancelSafely
+ "Cancel all edits by replacing the content with the original contents. Retain the undo history. If a model is listening to #textEdited and maybe also directly derives #getText from it, clear the edit buffer first, so that a cancel means deleting everything."
- "Cancel all edits by replacing the content with the original contents. Retain the undo history."
self handleEdit: [
+ self textEdited: ''.
textMorph editor replaceAllWith: self getText.
+ self textEdited: textMorph contents.
self selectInterval: self getSelection.
self hasUnacceptedEdits: false].!
More information about the Squeak-dev
mailing list
|