The Trunk: Morphic-kfr.1482.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-kfr.1482.mcz

commits-2
Karl Ramberg uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-kfr.1482.mcz

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

Name: Morphic-kfr.1482
Author: kfr
Time: 3 March 2019, 12:06:05.575161 pm
UUID: 9ff8560d-375c-a947-91b6-3ab0f856f9fc
Ancestors: Morphic-ul.1481

Two small fixes from tcj

Prevent DockingBar menu item labels from being edited, by default.  This hides three possible defects in current item label editing behavior: the editor appears with its position slightly off, it only allows one keypress before automatically accepting the input, and if a menubar icon is shift-clicked then it is erased and replaced by text input by the user.  Note that the menubar can be easily restored to its default contents by clicking Extras->Rebuild Menus, or evaluating: TheWorldMainDockingBar updateInstances


Copy a method from MVC's ParagraphEditor to Morphic's TextEditor.  #printerSetup is sent by StringHolder's shifted yellow button menu and so can be sent to both ParagraphEditor (in MVC) and TextEditor (in Morphic).

=============== Diff against Morphic-ul.1481 ===============

Item was changed:
  ----- Method: DockingBarItemMorph>>wantsKeyboardFocusOnShiftClick (in category 'events') -----
  wantsKeyboardFocusOnShiftClick
  "set this preference to false to prevent user editing of docking bar menu items"
+ ^Preferences valueOfPreference: #allowMenubarItemEditing ifAbsent: [false]!
- ^Preferences valueOfPreference: #allowMenubarItemEditing ifAbsent: [true]!

Item was added:
+ ----- Method: TextEditor>>printerSetup (in category 'menu messages') -----
+ printerSetup
+ "copied from ParagraphEditor"
+ TextPrinter defaultTextPrinter inspect
+ !